pub struct Flags(/* private fields */);Implementations§
Source§impl Flags
impl Flags
pub fn dup(&self) -> bool
pub fn set_dup(&mut self, value: bool)
pub fn qos(&self) -> u8
pub fn set_qos(&mut self, value: u8)
pub fn retain(&self) -> bool
pub fn set_retain(&mut self, value: bool)
pub fn will(&self) -> bool
pub fn set_will(&mut self, value: bool)
pub fn clean_session(&self) -> bool
pub fn set_clean_session(&mut self, value: bool)
pub fn topic_id_type(&self) -> u8
pub fn set_topic_id_type(&mut self, value: u8)
Trait Implementations§
impl Copy for Flags
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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