Skip to main content

ReceiverResult

Type Alias ReceiverResult 

Source
pub type ReceiverResult<A, W> = Result<Option<(A, W)>, Box<dyn Error>>;
Expand description

Outcome of run_receiver: None = clean shutdown, Some = promotion.

Aliased Type§

pub enum ReceiverResult<A, W> {
    Ok(Option<(A, W)>),
    Err(Box<dyn Error>),
}

Variants§

§1.0.0

Ok(Option<(A, W)>)

Contains the success value

§1.0.0

Err(Box<dyn Error>)

Contains the error value