pub enum DeliveryMode {
Transient,
Durable,
}Expand description
Defines whether RabbitMQ persists the messages to disk, which affects whether such messages are able to survive a broker restart.
Variants§
Transient
Delivery mode 1: non-persistent (transient): messages sent with this
mode will not survive a broker restart.
Durable
Delivery mode 2: persistent (durable): messages sent with this mode
will be written to disk and, if they are also routed to a durable
queue, they will survive a broker restart.
Implementations§
Source§impl DeliveryMode
impl DeliveryMode
Sourcepub const fn rabbitmq_value(&self) -> u8
pub const fn rabbitmq_value(&self) -> u8
Returns the appropriate u8 value recognized by RabbitMQ.
Trait Implementations§
Source§impl Clone for DeliveryMode
impl Clone for DeliveryMode
Source§fn clone(&self) -> DeliveryMode
fn clone(&self) -> DeliveryMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeliveryMode
impl Debug for DeliveryMode
Source§impl<'de> Deserialize<'de> for DeliveryMode
impl<'de> Deserialize<'de> for DeliveryMode
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<u8> for DeliveryMode
impl From<u8> for DeliveryMode
Source§fn from(value: ShortShortUInt) -> Self
fn from(value: ShortShortUInt) -> Self
Converts to this type from the input type.
Source§impl Hash for DeliveryMode
impl Hash for DeliveryMode
Source§impl Ord for DeliveryMode
impl Ord for DeliveryMode
Source§fn cmp(&self, other: &DeliveryMode) -> Ordering
fn cmp(&self, other: &DeliveryMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DeliveryMode
impl PartialEq for DeliveryMode
Source§impl PartialOrd for DeliveryMode
impl PartialOrd for DeliveryMode
impl Copy for DeliveryMode
impl Eq for DeliveryMode
impl StructuralPartialEq for DeliveryMode
Auto Trait Implementations§
impl Freeze for DeliveryMode
impl RefUnwindSafe for DeliveryMode
impl Send for DeliveryMode
impl Sync for DeliveryMode
impl Unpin for DeliveryMode
impl UnwindSafe for DeliveryMode
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more