pub enum DeliveryMode {
Persistent,
Ephemeral,
}
Expand description
The delivery mode of a message.
Variants§
Persistent
A persistent message will be persisted to disk and will survive a broker restart if the queue is durable. If the queue is non-durable, the message message will be persisted to disk until it is delivered to a consumer or until the broker is restarted.
Ephemeral
An ephemeral message will not be persisted to disk and will be lost if the broker is restarted.
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 Default for DeliveryMode
impl Default for DeliveryMode
Source§fn default() -> DeliveryMode
fn default() -> DeliveryMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for DeliveryMode
impl PartialEq 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