Enum RetainHandling
#[repr(u8)]pub enum RetainHandling {
SendAtSubscribe = 0,
SendIfNewSubscription = 1,
DoNotSend = 2,
}Expand description
Retain handling option for SUBSCRIBE.
Variants§
SendAtSubscribe = 0
Send retained messages at the time of subscribe.
SendIfNewSubscription = 1
Send retained messages only if the subscription is new.
DoNotSend = 2
Do not send retained messages.
Implementations§
Source§impl RetainHandling
impl RetainHandling
Sourcepub const fn from_u8(v: u8) -> Option<RetainHandling>
pub const fn from_u8(v: u8) -> Option<RetainHandling>
Converts a raw byte to a RetainHandling value.
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more