Struct tokio_mqttc::proto::ConnectAckFlags
[−]
[src]
pub struct ConnectAckFlags(_);
Methods
impl ConnectAckFlags
[src]
fn new(flags: ConnAckFlags) -> ConnectAckFlags
[src]
Methods from Deref<Target = ConnAckFlags>
fn bits(&self) -> u8
Returns the raw value of the flags currently stored.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: ConnAckFlags) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: ConnAckFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Trait Implementations
impl Deref for ConnectAckFlags
[src]
type Target = ConnAckFlags
The resulting type after dereferencing.
fn deref(&self) -> &ConnAckFlags
[src]
Dereferences the value.