Struct mqtt::control::variable_header::ConnackFlags
source · pub struct ConnackFlags {
pub session_present: bool,
}
Expand description
Flags in CONNACK
packet
Fields§
§session_present: bool
Implementations§
source§impl ConnackFlags
impl ConnackFlags
pub fn empty() -> ConnackFlags
Trait Implementations§
source§impl Clone for ConnackFlags
impl Clone for ConnackFlags
source§fn clone(&self) -> ConnackFlags
fn clone(&self) -> ConnackFlags
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 ConnackFlags
impl Debug for ConnackFlags
source§impl Decodable for ConnackFlags
impl Decodable for ConnackFlags
type Error = VariableHeaderError
type Cond = ()
source§fn decode_with<R: Read>(
reader: &mut R,
_rest: ()
) -> Result<ConnackFlags, VariableHeaderError>
fn decode_with<R: Read>( reader: &mut R, _rest: () ) -> Result<ConnackFlags, VariableHeaderError>
Decodes object with additional data (or hints)
source§impl Encodable for ConnackFlags
impl Encodable for ConnackFlags
source§impl PartialEq for ConnackFlags
impl PartialEq for ConnackFlags
source§fn eq(&self, other: &ConnackFlags) -> bool
fn eq(&self, other: &ConnackFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnackFlags
impl Eq for ConnackFlags
impl StructuralPartialEq for ConnackFlags
Auto Trait Implementations§
impl Freeze for ConnackFlags
impl RefUnwindSafe for ConnackFlags
impl Send for ConnackFlags
impl Sync for ConnackFlags
impl Unpin for ConnackFlags
impl UnwindSafe for ConnackFlags
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