#[repr(u8)]pub enum Retain {
NotRetained = 0,
Retained = 1,
}
Expand description
The retained status for an MQTT message.
Variants§
NotRetained = 0
The message shall not be retained by the broker.
Retained = 1
The message shall be marked for retention by the broker.
Trait Implementations§
source§impl PartialEq for Retain
impl PartialEq for Retain
source§impl TryFrom<u8> for Retain
impl TryFrom<u8> for Retain
§type Error = TryFromPrimitiveError<Retain>
type Error = TryFromPrimitiveError<Retain>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Retain
impl TryFromPrimitive for Retain
impl Copy for Retain
impl StructuralPartialEq for Retain
Auto Trait Implementations§
impl RefUnwindSafe for Retain
impl Send for Retain
impl Sync for Retain
impl Unpin for Retain
impl UnwindSafe for Retain
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