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
sourceimpl ConnectFlags
impl ConnectFlags
pub fn empty() -> ConnectFlags
Trait Implementations
sourceimpl Clone for ConnectFlags
impl Clone for ConnectFlags
sourcefn clone(&self) -> ConnectFlags
fn clone(&self) -> ConnectFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConnectFlags
impl Debug for ConnectFlags
sourceimpl Decodable for ConnectFlags
impl Decodable for ConnectFlags
type Error = VariableHeaderError
type Cond = ()
sourcefn 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)
sourceimpl Encodable for ConnectFlags
impl Encodable for ConnectFlags
sourceimpl PartialEq<ConnectFlags> for ConnectFlags
impl PartialEq<ConnectFlags> for ConnectFlags
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ConnectFlags) -> bool
fn ne(&self, other: &ConnectFlags) -> bool
This method tests for !=
.
impl Copy for ConnectFlags
impl Eq for ConnectFlags
impl StructuralEq for ConnectFlags
impl StructuralPartialEq for ConnectFlags
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more