Struct stm32wb_hci::event::command::LeStates
source · pub struct LeStates { /* private fields */ }Expand description
Possible LE states or state combinations for the LE Read Supported States command.
Implementations§
source§impl LeStates
impl LeStates
sourcepub const NON_CONNECTABLE_ADVERTISING: Self = _
pub const NON_CONNECTABLE_ADVERTISING: Self = _
Non-connectable advertising state alone.
sourcepub const SCANNABLE_ADVERTISING: Self = _
pub const SCANNABLE_ADVERTISING: Self = _
Scannable advertising state alone
sourcepub const CONNECTABLE_ADVERTISING: Self = _
pub const CONNECTABLE_ADVERTISING: Self = _
Connectable advertising state alone
sourcepub const DIRECTED_ADVERTISING_HIGH_DUTY_CYCLE: Self = _
pub const DIRECTED_ADVERTISING_HIGH_DUTY_CYCLE: Self = _
Directed advertising (high duty cycle) state alone
sourcepub const PASSIVE_SCANNING: Self = _
pub const PASSIVE_SCANNING: Self = _
Passive scanning state alone
sourcepub const ACTIVE_SCANNING: Self = _
pub const ACTIVE_SCANNING: Self = _
Active scanning state alone
sourcepub const INITIATING: Self = _
pub const INITIATING: Self = _
Initianing state alone
sourcepub const PERIPHERAL_CONNECTION: Self = _
pub const PERIPHERAL_CONNECTION: Self = _
Peripheral (slave) connection state alone
sourcepub const NONCONN_AD_AND_PASS_SCAN: Self = _
pub const NONCONN_AD_AND_PASS_SCAN: Self = _
Non-connectable advertising and passive scan states.
sourcepub const SCAN_AD_AND_PASS_SCAN: Self = _
pub const SCAN_AD_AND_PASS_SCAN: Self = _
Scannable advertising and passive scan states
sourcepub const CONN_AD_AND_PASS_SCAN: Self = _
pub const CONN_AD_AND_PASS_SCAN: Self = _
Connectable advertising and passive scan states
sourcepub const DIR_AD_HDC_AND_PASS_SCAN: Self = _
pub const DIR_AD_HDC_AND_PASS_SCAN: Self = _
Directed advertising (high duty cycle) and passive scan states
sourcepub const NONCONN_AD_AND_ACT_SCAN: Self = _
pub const NONCONN_AD_AND_ACT_SCAN: Self = _
Non-connectable advertising and active scan states.
sourcepub const SCAN_AD_AND_ACT_SCAN: Self = _
pub const SCAN_AD_AND_ACT_SCAN: Self = _
Scannable advertising and active scan states
sourcepub const CONN_AD_AND_ACT_SCAN: Self = _
pub const CONN_AD_AND_ACT_SCAN: Self = _
Connectable advertising and active scan states
sourcepub const DIR_AD_HDC_AND_ACT_SCAN: Self = _
pub const DIR_AD_HDC_AND_ACT_SCAN: Self = _
Directed advertising (high duty cycle) and active scan states
sourcepub const NONCONN_AD_AND_INITIATING: Self = _
pub const NONCONN_AD_AND_INITIATING: Self = _
Non-connectable advertising and initiating states.
sourcepub const SCAN_AD_AND_INITIATING: Self = _
pub const SCAN_AD_AND_INITIATING: Self = _
Scannable advertising and initiating states
sourcepub const NONCONN_AD_AND_CENTRAL_CONN: Self = _
pub const NONCONN_AD_AND_CENTRAL_CONN: Self = _
Non-connectable advertising and central (master) connection states.
sourcepub const SCAN_AD_AND_CENTRAL_CONN: Self = _
pub const SCAN_AD_AND_CENTRAL_CONN: Self = _
Scannable advertising and central (master) connection states
sourcepub const NONCONN_AD_AND_PERIPH_CONN: Self = _
pub const NONCONN_AD_AND_PERIPH_CONN: Self = _
Non-connectable advertising and peripheral (slave) connection states.
sourcepub const SCAN_AD_AND_PERIPH_CONN: Self = _
pub const SCAN_AD_AND_PERIPH_CONN: Self = _
Scannable advertising and peripheral (slave) connection states
sourcepub const PASS_SCAN_AND_INITIATING: Self = _
pub const PASS_SCAN_AND_INITIATING: Self = _
Passive scan and initiating states
sourcepub const ACT_SCAN_AND_INITIATING: Self = _
pub const ACT_SCAN_AND_INITIATING: Self = _
Active scan and initiating states
sourcepub const PASS_SCAN_AND_CENTRAL_CONN: Self = _
pub const PASS_SCAN_AND_CENTRAL_CONN: Self = _
Passive scan and central (master) connection states
sourcepub const ACT_SCAN_AND_CENTRAL_CONN: Self = _
pub const ACT_SCAN_AND_CENTRAL_CONN: Self = _
Active scan and central (master) connection states
sourcepub const PASS_SCAN_AND_PERIPH_CONN: Self = _
pub const PASS_SCAN_AND_PERIPH_CONN: Self = _
Passive scan and peripheral (slave) connection states
sourcepub const ACT_SCAN_AND_PERIPH_CONN: Self = _
pub const ACT_SCAN_AND_PERIPH_CONN: Self = _
Active scan and peripheral (slave) connection states
sourcepub const INITIATING_AND_CENTRAL_CONN: Self = _
pub const INITIATING_AND_CENTRAL_CONN: Self = _
Initiating and central (master) connection states
sourcepub const DIRECTED_ADVERTISING_LOW_DUTY_CYCLE: Self = _
pub const DIRECTED_ADVERTISING_LOW_DUTY_CYCLE: Self = _
Directed advertising (low duty cycle) state alone
sourcepub const DIR_AD_LDC_AND_PASS_SCAN: Self = _
pub const DIR_AD_LDC_AND_PASS_SCAN: Self = _
Directed advertising (low duty cycle) and passive scan states
sourcepub const DIR_AD_LDC_AND_ACT_SCAN: Self = _
pub const DIR_AD_LDC_AND_ACT_SCAN: Self = _
Directed advertising (low duty cycle) and active scan states
sourcepub const CONN_AD_AND_INITIATING: Self = _
pub const CONN_AD_AND_INITIATING: Self = _
Connectable advertising and initiating states
sourcepub const DIR_AD_HDC_AND_INITIATING: Self = _
pub const DIR_AD_HDC_AND_INITIATING: Self = _
Directed advertising (high duty cycle) and initiating states
sourcepub const DIR_AD_LDC_AND_INITIATING: Self = _
pub const DIR_AD_LDC_AND_INITIATING: Self = _
Directed advertising (low duty cycle) and initiating states
sourcepub const CONN_AD_AND_CENTRAL_CONN: Self = _
pub const CONN_AD_AND_CENTRAL_CONN: Self = _
Connectable advertising and central (master) connection states
sourcepub const DIR_AD_HDC_AND_CENTRAL_CONN: Self = _
pub const DIR_AD_HDC_AND_CENTRAL_CONN: Self = _
Directed advertising (high duty cycle) and central (master) states
sourcepub const DIR_AD_LDC_AND_CENTRAL_CONN: Self = _
pub const DIR_AD_LDC_AND_CENTRAL_CONN: Self = _
Directed advertising (low duty cycle) and central (master) states
sourcepub const CONN_AD_AND_PERIPH_CONN: Self = _
pub const CONN_AD_AND_PERIPH_CONN: Self = _
Connectable advertising and peripheral (slave) connection states
sourcepub const DIR_AD_HDC_AND_PERIPH_CONN: Self = _
pub const DIR_AD_HDC_AND_PERIPH_CONN: Self = _
Directed advertising (high duty cycle) and peripheral (slave) states
sourcepub const DIR_AD_LDC_AND_PERIPH_CONN: Self = _
pub const DIR_AD_LDC_AND_PERIPH_CONN: Self = _
Directed advertising (low duty cycle) and peripheral (slave) states
sourcepub const INITIATING_AND_PERIPH_CONN: Self = _
pub const INITIATING_AND_PERIPH_CONN: Self = _
Initiating and peripheral (slave) connection states
sourcepub const fn from_bits(bits: u64) -> Option<Self>
pub const fn from_bits(bits: u64) -> Option<Self>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u64) -> Self
pub const fn from_bits_truncate(bits: u64) -> Self
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u64) -> Self
pub const unsafe fn from_bits_unchecked(bits: u64) -> Self
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Safety
The caller of the bitflags! macro can chose to allow or
disallow extra bits for their bitflags type.
The caller of from_bits_unchecked() has to ensure that
all bits correspond to a defined flag or that extra bits
are valid for this bitflags type.
sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns true if there are flags common to both self and other.
sourcepub const fn contains(&self, other: Self) -> bool
pub const fn contains(&self, other: Self) -> bool
Returns true if all of the flags in other are contained within self.
sourcepub fn set(&mut self, other: Self, value: bool)
pub fn set(&mut self, other: Self, value: bool)
Inserts or removes the specified flags depending on the passed value.
sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection between the flags in self and
other.
Specifically, the returned set contains only the flags which are
present in both self and other.
This is equivalent to using the & operator (e.g.
ops::BitAnd), as in flags & other.
sourcepub const fn union(self, other: Self) -> Self
pub const fn union(self, other: Self) -> Self
Returns the union of between the flags in self and other.
Specifically, the returned set contains all flags which are
present in either self or other, including any which are
present in both (see Self::symmetric_difference if that
is undesirable).
This is equivalent to using the | operator (e.g.
ops::BitOr), as in flags | other.
sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference between the flags in self and other.
Specifically, the returned set contains all flags present in
self, except for the ones present in other.
It is also conceptually equivalent to the “bit-clear” operation:
flags & !other (and this syntax is also supported).
This is equivalent to using the - operator (e.g.
ops::Sub), as in flags - other.
sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference between the flags
in self and other.
Specifically, the returned set contains the flags present which
are present in self or other, but that are not present in
both. Equivalently, it contains the flags present in exactly
one of the sets self and other.
This is equivalent to using the ^ operator (e.g.
ops::BitXor), as in flags ^ other.
sourcepub const fn complement(self) -> Self
pub const fn complement(self) -> Self
Returns the complement of this set of flags.
Specifically, the returned set contains all the flags which are
not set in self, but which are allowed for this type.
Alternatively, it can be thought of as the set difference
between Self::all() and self (e.g. Self::all() - self)
This is equivalent to using the ! operator (e.g.
ops::Not), as in !flags.
Trait Implementations§
source§impl BitAndAssign<LeStates> for LeStates
impl BitAndAssign<LeStates> for LeStates
source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
source§impl BitOrAssign<LeStates> for LeStates
impl BitOrAssign<LeStates> for LeStates
source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
source§impl BitXorAssign<LeStates> for LeStates
impl BitXorAssign<LeStates> for LeStates
source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
source§impl Extend<LeStates> for LeStates
impl Extend<LeStates> for LeStates
source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)source§impl FromIterator<LeStates> for LeStates
impl FromIterator<LeStates> for LeStates
source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
source§impl Ord for LeStates
impl Ord for LeStates
source§impl PartialEq<LeStates> for LeStates
impl PartialEq<LeStates> for LeStates
source§impl PartialOrd<LeStates> for LeStates
impl PartialOrd<LeStates> for LeStates
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl SubAssign<LeStates> for LeStates
impl SubAssign<LeStates> for LeStates
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.