Struct mqtt::control::variable_header::ConnectFlags [−][src]
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: boolpassword: boolwill_retain: boolwill_qos: u8will_flag: boolclean_session: boolreserved: boolImplementations
Trait Implementations
type Error = VariableHeaderError
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)
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ConnectFlags
impl Send for ConnectFlags
impl Sync for ConnectFlags
impl Unpin for ConnectFlags
impl UnwindSafe for ConnectFlags
Blanket Implementations
Mutably borrows from an owned value. Read more