pub enum DeliverPolicy {
All,
Last,
New,
LastPerSubject,
}Expand description
Deliver policy for consumers.
Variants§
All
Deliver all messages.
Last
Deliver only the last message.
New
Deliver only new messages.
LastPerSubject
Deliver the last message per subject.
Trait Implementations§
Source§impl Clone for DeliverPolicy
impl Clone for DeliverPolicy
Source§fn clone(&self) -> DeliverPolicy
fn clone(&self) -> DeliverPolicy
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 DeliverPolicy
impl Debug for DeliverPolicy
Source§impl Default for DeliverPolicy
impl Default for DeliverPolicy
Source§fn default() -> DeliverPolicy
fn default() -> DeliverPolicy
Returns the “default value” for a type. Read more
Source§impl From<DeliverPolicy> for DeliverPolicy
impl From<DeliverPolicy> for DeliverPolicy
Source§fn from(policy: DeliverPolicy) -> Self
fn from(policy: DeliverPolicy) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DeliverPolicy
impl PartialEq for DeliverPolicy
impl Copy for DeliverPolicy
impl Eq for DeliverPolicy
impl StructuralPartialEq for DeliverPolicy
Auto Trait Implementations§
impl Freeze for DeliverPolicy
impl RefUnwindSafe for DeliverPolicy
impl Send for DeliverPolicy
impl Sync for DeliverPolicy
impl Unpin for DeliverPolicy
impl UnwindSafe for DeliverPolicy
Blanket Implementations§
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