Struct tokio_mqttc::proto::ConnectFlags
[−]
[src]
pub struct ConnectFlags(_);
Methods
impl ConnectFlags
[src]
fn new(flags: ConnFlags) -> ConnectFlags
[src]
Methods from Deref<Target = ConnFlags>
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: ConnFlags) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: ConnFlags) -> bool
Returns true
all of the flags in other
are contained within self
.
Trait Implementations
impl Deref for ConnectFlags
[src]
type Target = ConnFlags
The resulting type after dereferencing.
fn deref(&self) -> &ConnFlags
[src]
Dereferences the value.