hopr_transport_protocol::errors

Type Alias Result

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

Result used by the crate, based on the ProtocolError error type.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ProtocolError)

Contains the error value