SessionError

Type Alias SessionError 

Source
pub type SessionError = Error<SessionErrorKind>;

Aliased Type§

pub struct SessionError {
    pub context: &'static str,
    pub kind: SessionErrorKind,
    /* private fields */
}

Fields§

§context: &'static str§kind: SessionErrorKind

Trait Implementations§

Source§

impl SessionErrorExt for SessionError

Source§

fn pdu(error: PduError) -> Self

Source§

fn encode(error: EncodeError) -> Self

Source§

fn decode(error: DecodeError) -> Self

Source§

fn general(context: &'static str) -> Self

Source§

fn reason(context: &'static str, reason: impl Into<String>) -> Self

Source§

fn custom<E>(context: &'static str, e: E) -> Self
where E: Error + Sync + Send + 'static,