Type Alias Result

Source
pub type Result<T> = Result<T, Error>;
Expand description

The result type for rsocks.

std::io::Error is used as the error type because it fits almost all use cases, and iis already widely used in the standard library.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value