pub enum ConfirmationLevel {
Transmitted,
Accepted,
Routed,
}Expand description
Defines the extent to which the message Publisher
should confirm successful sending.
If the confirmation level is set to the lowest level, then the confirmation of the message is going-to be a no-op, without any network communication. If, however, the confirmation level is anywhere higher, the confirmation is performed against the RabbitMQ broker asynchronously, and the publishing implicitly switches to at-least-once publishing guarantee, which means that some of the messages may be published multiple times.
Variants§
Transmitted
Ensures network transmission.
Accepted
Ensures network transmission and exchange existence.
Routed
Ensures network transmission and exchange existence and routing to a queue.
Trait Implementations§
Source§impl Clone for ConfirmationLevel
impl Clone for ConfirmationLevel
Source§fn clone(&self) -> ConfirmationLevel
fn clone(&self) -> ConfirmationLevel
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 ConfirmationLevel
impl Debug for ConfirmationLevel
Source§impl<'de> Deserialize<'de> for ConfirmationLevel
impl<'de> Deserialize<'de> for ConfirmationLevel
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 Hash for ConfirmationLevel
impl Hash for ConfirmationLevel
Source§impl Ord for ConfirmationLevel
impl Ord for ConfirmationLevel
Source§fn cmp(&self, other: &ConfirmationLevel) -> Ordering
fn cmp(&self, other: &ConfirmationLevel) -> 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 ConfirmationLevel
impl PartialEq for ConfirmationLevel
Source§impl PartialOrd for ConfirmationLevel
impl PartialOrd for ConfirmationLevel
impl Copy for ConfirmationLevel
impl Eq for ConfirmationLevel
impl StructuralPartialEq for ConfirmationLevel
Auto Trait Implementations§
impl Freeze for ConfirmationLevel
impl RefUnwindSafe for ConfirmationLevel
impl Send for ConfirmationLevel
impl Sync for ConfirmationLevel
impl Unpin for ConfirmationLevel
impl UnwindSafe for ConfirmationLevel
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