Skip to main content

Established

Type Alias Established 

Source
pub type Established<T, E = SessionError> = Result<T, E>;
Expand description

How a session turned out: the payload the engine established for it, or why it never was.

The failure is the engine’s own error type where it has one, so that what stopped a session being established survives to the request that goes on to need it – a connection failure has to still read as one, or a caller cannot tell that reconnecting is what to do. The registry’s own failures convert into it.

Aliased Type§

pub enum Established<T, E = SessionError> {
    Ok(T),
    Err(E),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(E)

Contains the error value