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§
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.