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