Type Alias tor_socksproto::TResult

source ·
pub type TResult<T> = Result<Result<T>, Truncated>;
Expand description

A Result type for the tor_socksproto crate, including the possibility of a truncated message.

This is a separate type from Result because a truncated message is not a true error: it just means that you need to read more bytes and try again.

Aliased Type§

enum TResult<T> {
    Ok(Result<T, Error>),
    Err(Truncated),
}

Variants§

§1.0.0

Ok(Result<T, Error>)

Contains the success value

§1.0.0

Err(Truncated)

Contains the error value