Type Alias lapin::message::DeliveryResult

source ·
pub type DeliveryResult = Result<Option<Delivery>>;
Expand description

Type wrapping the output of a consumer

  • Ok(Some(delivery)) carries the delivery alongside its channel
  • Ok(None) means that the consumer got canceled
  • Err(error) carries the error and is always followed by Ok(None)

Aliased Type§

enum DeliveryResult {
    Ok(Option<Delivery>),
    Err(Error),
}

Variants§

§1.0.0

Ok(Option<Delivery>)

Contains the success value

§1.0.0

Err(Error)

Contains the error value