TResult

Type Alias 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§

pub 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

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.