Enum minimq::types::RetainHandling
source · #[repr(u8)]pub enum RetainHandling {
Immediately = 0,
IfSubscriptionDoesNotExist = 1,
Never = 2,
}
Expand description
Used to specify how currently-retained messages should be handled after the topic is subscribed to.
Variants§
Immediately = 0
All retained messages should immediately be transmitted if they are present.
IfSubscriptionDoesNotExist = 1
Retained messages should only be published if the subscription does not already exist.
Never = 2
Do not provide any retained messages on this topic.
Trait Implementations§
source§impl Clone for RetainHandling
impl Clone for RetainHandling
source§fn clone(&self) -> RetainHandling
fn clone(&self) -> RetainHandling
Returns a copy 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
impl Copy 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