pub enum RetainHandling {
OnSubscribe = 0,
OnFirstSubscribe = 1,
DontSend = 2,
}Expand description
This option specifies whether retained messages are sent when the subscription is established;
Variants§
OnSubscribe = 0
Send retained messages at the time of the subscribe
OnFirstSubscribe = 1
Send retained messages at the time of the first subscribe
DontSend = 2
Don’t 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 · 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 RetainHandling
impl Debug for RetainHandling
Source§impl PartialEq for RetainHandling
impl PartialEq for RetainHandling
Source§impl TryFrom<u8> for RetainHandling
impl TryFrom<u8> for RetainHandling
impl Copy for RetainHandling
impl Eq 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 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