Struct mqtt::control::variable_header::connect_flags::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,
}Fields
user_name: bool
password: bool
will_retain: bool
will_qos: u8
will_flag: bool
clean_session: bool
Methods
impl ConnectFlags[src]
fn empty() -> ConnectFlags
Trait Implementations
impl Debug for ConnectFlags[src]
impl Eq for ConnectFlags[src]
impl PartialEq for ConnectFlags[src]
fn eq(&self, __arg_0: &ConnectFlags) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &ConnectFlags) -> bool
This method tests for !=.
impl Copy for ConnectFlags[src]
impl Clone for ConnectFlags[src]
fn clone(&self) -> ConnectFlags
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<'a> Encodable<'a> for ConnectFlags[src]
type Err = VariableHeaderError
fn encode<W: Write>(&self, writer: &mut W) -> Result<(), VariableHeaderError>
fn encoded_length(&self) -> u32
impl<'a> Decodable<'a> for ConnectFlags[src]
type Err = VariableHeaderError
type Cond = ()
fn decode_with<R: Read>(reader: &mut R,
_rest: Option<()>)
-> Result<ConnectFlags, VariableHeaderError>
_rest: Option<()>)
-> Result<ConnectFlags, VariableHeaderError>