Function arti::socks::reply_error

source ·
async fn reply_error<W>(
    writer: &mut W,
    request: &SocksRequest,
    error: ErrorKind
) -> Result<()>
where W: AsyncWrite + Unpin,
Expand description

Reply a Socks error based on an arti-client Error and close the stream. Returns the error provided in parameter