Skip to main content

RecvResult

Type Alias RecvResult 

Source
pub type RecvResult<M, E> = Result<Option<SelfRef<<M as MsgFamily>::Msg<'static>>>, E>;
Expand description

Receiving half of a Conduit.

Yields decoded values as SelfRef<Msg<'static>> (value + backing storage). Uses a precomputed TypePlanCore for fast plan-driven deserialization. The result of receiving a message from a conduit.

Aliased Type§

pub enum RecvResult<M, E> {
    Ok(Option<SelfRef<<M as MsgFamily>::Msg<'static>>>),
    Err(E),
}

Variants§

§1.0.0

Ok(Option<SelfRef<<M as MsgFamily>::Msg<'static>>>)

Contains the success value

§1.0.0

Err(E)

Contains the error value