pub enum RetainHandling {
Send = 0,
SendForNewSub = 1,
DoNotSend = 2,
}Expand description
Controls how retained messages are handled for subscriptions
Variants§
Send = 0
Send retained messages at the time of subscribe (default)
SendForNewSub = 1
Send retained messages only if subscription is new
DoNotSend = 2
Never send retained messages
Trait Implementations§
Source§impl Clone for RetainHandling
impl Clone for RetainHandling
Source§fn clone(&self) -> RetainHandling
fn clone(&self) -> RetainHandling
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RetainHandling
Source§impl Debug for RetainHandling
impl Debug for RetainHandling
impl Eq for RetainHandling
Source§impl From<RetainHandling> for u8
impl From<RetainHandling> for u8
Source§fn from(value: RetainHandling) -> Self
fn from(value: RetainHandling) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RetainHandling
impl PartialEq for RetainHandling
Source§fn eq(&self, other: &RetainHandling) -> bool
fn eq(&self, other: &RetainHandling) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RetainHandling
impl PartialOrd for RetainHandling
impl StructuralPartialEq for RetainHandling
Auto Trait Implementations§
impl Freeze for RetainHandling
impl RefUnwindSafe for RetainHandling
impl Send for RetainHandling
impl Sync for RetainHandling
impl Unpin for RetainHandling
impl UnsafeUnpin for RetainHandling
impl UnwindSafe for RetainHandling
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