[][src]Type Definition lapin::message::DeliveryResult

type DeliveryResult = Result<Option<(Channel, Delivery)>>;

Type wrapping the output of a consumer

  • Ok(Some((channel, 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)