pub struct PairingHintFlags(/* private fields */);Implementations§
Source§impl PairingHintFlags
impl PairingHintFlags
Sourcepub const POWER_CYCLE: PairingHintFlags
pub const POWER_CYCLE: PairingHintFlags
Power Cycle False The Device will automatically enter Commissioning Mode upon power cycle (unplug/replug, remove/re-insert batteries). This bit SHALL be set to 1 for devices using Standard Commissioning Flow, and set to 0 otherwise.
Sourcepub const DEV_MANUFACTURER_URL: PairingHintFlags
pub const DEV_MANUFACTURER_URL: PairingHintFlags
This SHALL be set to 1 for devices requiring Custom Commissioning Flow before they can be available for Commissioning by any Commissioner. For such a flow, the user SHOULD be sent to the URL specified in the CommissioningCustomFlowUrl of the DeviceModel schema entry indexed by the Vendor ID and Product ID (e.g., as found in the announcement) in the Distributed Compliance Ledger.
Sourcepub const ADMINISTRATOR: PairingHintFlags
pub const ADMINISTRATOR: PairingHintFlags
The Device has been commissioned. Any Administrator that commissioned the device provides a user interface that may be used to put the device into Commissioning Mode.
Sourcepub const SETTINGS_MENU: PairingHintFlags
pub const SETTINGS_MENU: PairingHintFlags
The settings menu on the Device provides instructions to put it into Commissioning Mode.
Sourcepub const CUSTOM_INSTRUCTION: PairingHintFlags
pub const CUSTOM_INSTRUCTION: PairingHintFlags
The PI key/value pair describes a custom way to put the Device into Commissioning Mode. This Custom Instruction option is NOT recommended for use by a Device that does not have knowledge of the user’s language preference.
Sourcepub const DEVICE_MANUAL: PairingHintFlags
pub const DEVICE_MANUAL: PairingHintFlags
The Device Manual provides special instructions to put the Device into Commissioning Mode (see “UserManualUrl” in the Core Spec). This is a catchall option to capture user interactions that are not codified by other options in this flags type.
Sourcepub const PRESS_RESET_BUTTON: PairingHintFlags
pub const PRESS_RESET_BUTTON: PairingHintFlags
The Device will enter Commissioning Mode when reset button is pressed.
Sourcepub const PRESS_RESET_BUTTON_WITH_POWER: PairingHintFlags
pub const PRESS_RESET_BUTTON_WITH_POWER: PairingHintFlags
The Device will enter Commissioning Mode when reset button is pressed when applying power to it.
Sourcepub const PRESS_RESET_BUTTON_FOR_N_SECONDS: PairingHintFlags
pub const PRESS_RESET_BUTTON_FOR_N_SECONDS: PairingHintFlags
The Device will enter Commissioning Mode when reset button is pressed for N seconds. The exact value of N SHALL be made available via PI key.
Sourcepub const PRESS_RESET_BUTTON_UNTIL_LIGHT_BLINKS: PairingHintFlags
pub const PRESS_RESET_BUTTON_UNTIL_LIGHT_BLINKS: PairingHintFlags
The Device will enter Commissioning Mode when reset button is pressed until associated light blinks. Information on color of light MAY be made available via PI key.
Sourcepub const PRESS_RESET_BUTTON_FOR_N_SECONDS_WITH_POWER: PairingHintFlags
pub const PRESS_RESET_BUTTON_FOR_N_SECONDS_WITH_POWER: PairingHintFlags
The Device will enter Commissioning Mode when reset button is pressed for N seconds when applying power to it. The exact value of N SHALL be made available via PI key.
Sourcepub const PRESS_RESET_BUTTON_UNTIL_LIGHT_BLINKS_WITH_POWER: PairingHintFlags
pub const PRESS_RESET_BUTTON_UNTIL_LIGHT_BLINKS_WITH_POWER: PairingHintFlags
The Device will enter Commissioning Mode when reset button is pressed until associated light blinks when applying power to the Device. Information on color of light MAY be made available via PI key.
Sourcepub const PRESS_RESET_BUTTON_N_TIMES: PairingHintFlags
pub const PRESS_RESET_BUTTON_N_TIMES: PairingHintFlags
The Device will enter Commissioning Mode when reset button is pressed N times with maximum 1 second between each press. The exact value of N SHALL be made available via PI key.
Sourcepub const PRESS_SETUP_BUTTON: PairingHintFlags
pub const PRESS_SETUP_BUTTON: PairingHintFlags
The Device will enter Commissioning Mode when setup button is pressed.
Sourcepub const PRESS_SETUP_BUTTON_WITH_POWER: PairingHintFlags
pub const PRESS_SETUP_BUTTON_WITH_POWER: PairingHintFlags
The Device will enter Commissioning Mode when setup button is pressed when applying power to it.
Sourcepub const PRESS_SETUP_BUTTON_FOR_N_SECONDS: PairingHintFlags
pub const PRESS_SETUP_BUTTON_FOR_N_SECONDS: PairingHintFlags
The Device will enter Commissioning Mode when setup button is pressed for N seconds. The exact value of N SHALL be made available via PI key.
Sourcepub const PRESS_SETUP_BUTTON_UNTIL_LIGHT_BLINKS: PairingHintFlags
pub const PRESS_SETUP_BUTTON_UNTIL_LIGHT_BLINKS: PairingHintFlags
The Device will enter Commissioning Mode when setup button is pressed until associated light blinks. Information on color of light MAY be made available via PI key.
Sourcepub const PRESS_SETUP_BUTTON_FOR_N_SECONDS_WITH_POWER: PairingHintFlags
pub const PRESS_SETUP_BUTTON_FOR_N_SECONDS_WITH_POWER: PairingHintFlags
The Device will enter Commissioning Mode when setup button is pressed for N seconds when applying power to it. The exact value of N SHALL be made available via PI key.
Sourcepub const PRESS_SETUP_BUTTON_UNTIL_LIGHT_BLINKS_WITH_POWER: PairingHintFlags
pub const PRESS_SETUP_BUTTON_UNTIL_LIGHT_BLINKS_WITH_POWER: PairingHintFlags
The Device will enter Commissioning Mode when setup button is pressed until associated light blinks when applying power to the Device. Information on color of light MAY be made available via PI key.
Sourcepub const PRESS_SETUP_BUTTON_N_TIMES: PairingHintFlags
pub const PRESS_SETUP_BUTTON_N_TIMES: PairingHintFlags
The Device will enter Commissioning Mode when setup button is pressed N times with maximum 1 second between each press. The exact value of N SHALL be made available via PI key.
Source§impl PairingHintFlags
impl PairingHintFlags
Sourcepub const fn empty() -> PairingHintFlags
pub const fn empty() -> PairingHintFlags
Get a flags value with all bits unset.
Sourcepub const fn all() -> PairingHintFlags
pub const fn all() -> PairingHintFlags
Get a flags value with all known bits set.
Sourcepub const fn bits(&self) -> u32
pub const fn bits(&self) -> u32
Get the underlying bits value.
The returned value is exactly the bits set in this flags value.
Sourcepub const fn from_bits(bits: u32) -> Option<PairingHintFlags>
pub const fn from_bits(bits: u32) -> Option<PairingHintFlags>
Convert from a bits value.
This method will return None if any unknown bits are set.
Sourcepub const fn from_bits_truncate(bits: u32) -> PairingHintFlags
pub const fn from_bits_truncate(bits: u32) -> PairingHintFlags
Convert from a bits value, unsetting any unknown bits.
Sourcepub const fn from_bits_retain(bits: u32) -> PairingHintFlags
pub const fn from_bits_retain(bits: u32) -> PairingHintFlags
Convert from a bits value exactly.
Sourcepub fn from_name(name: &str) -> Option<PairingHintFlags>
pub fn from_name(name: &str) -> Option<PairingHintFlags>
Get a flags value with the bits of a flag with the given name set.
This method will return None if name is empty or doesn’t
correspond to any named flag.
Sourcepub const fn intersects(&self, other: PairingHintFlags) -> bool
pub const fn intersects(&self, other: PairingHintFlags) -> bool
Whether any set bits in other are also set in self.
Sourcepub const fn contains(&self, other: PairingHintFlags) -> bool
pub const fn contains(&self, other: PairingHintFlags) -> bool
Whether all set bits in other are also set in self.
Sourcepub fn insert(&mut self, other: PairingHintFlags)
pub fn insert(&mut self, other: PairingHintFlags)
The bitwise or (|) of the bits in self and other.
Sourcepub fn remove(&mut self, other: PairingHintFlags)
pub fn remove(&mut self, other: PairingHintFlags)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
remove won’t truncate other, but the ! operator will.
Sourcepub fn toggle(&mut self, other: PairingHintFlags)
pub fn toggle(&mut self, other: PairingHintFlags)
The bitwise exclusive-or (^) of the bits in self and other.
Sourcepub fn set(&mut self, other: PairingHintFlags, value: bool)
pub fn set(&mut self, other: PairingHintFlags, value: bool)
Call insert when value is true or remove when value is false.
Sourcepub const fn intersection(self, other: PairingHintFlags) -> PairingHintFlags
pub const fn intersection(self, other: PairingHintFlags) -> PairingHintFlags
The bitwise and (&) of the bits in self and other.
Sourcepub const fn union(self, other: PairingHintFlags) -> PairingHintFlags
pub const fn union(self, other: PairingHintFlags) -> PairingHintFlags
The bitwise or (|) of the bits in self and other.
Sourcepub const fn difference(self, other: PairingHintFlags) -> PairingHintFlags
pub const fn difference(self, other: PairingHintFlags) -> PairingHintFlags
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Sourcepub const fn symmetric_difference(
self,
other: PairingHintFlags,
) -> PairingHintFlags
pub const fn symmetric_difference( self, other: PairingHintFlags, ) -> PairingHintFlags
The bitwise exclusive-or (^) of the bits in self and other.
Sourcepub const fn complement(self) -> PairingHintFlags
pub const fn complement(self) -> PairingHintFlags
The bitwise negation (!) of the bits in self, truncating the result.
Source§impl PairingHintFlags
impl PairingHintFlags
Sourcepub const fn iter(&self) -> Iter<PairingHintFlags> ⓘ
pub const fn iter(&self) -> Iter<PairingHintFlags> ⓘ
Yield a set of contained flags values.
Each yielded flags value will correspond to a defined named flag. Any unknown bits will be yielded together as a final flags value.
Sourcepub const fn iter_names(&self) -> IterNames<PairingHintFlags> ⓘ
pub const fn iter_names(&self) -> IterNames<PairingHintFlags> ⓘ
Yield a set of contained named flags values.
This method is like iter, except only yields bits in contained named flags.
Any unknown bits, or bits not corresponding to a contained flag will not be yielded.
Trait Implementations§
Source§impl Binary for PairingHintFlags
impl Binary for PairingHintFlags
Source§impl BitAnd for PairingHintFlags
impl BitAnd for PairingHintFlags
Source§fn bitand(self, other: PairingHintFlags) -> PairingHintFlags
fn bitand(self, other: PairingHintFlags) -> PairingHintFlags
The bitwise and (&) of the bits in self and other.
Source§type Output = PairingHintFlags
type Output = PairingHintFlags
& operator.Source§impl BitAndAssign for PairingHintFlags
impl BitAndAssign for PairingHintFlags
Source§fn bitand_assign(&mut self, other: PairingHintFlags)
fn bitand_assign(&mut self, other: PairingHintFlags)
The bitwise and (&) of the bits in self and other.
Source§impl BitOr for PairingHintFlags
impl BitOr for PairingHintFlags
Source§fn bitor(self, other: PairingHintFlags) -> PairingHintFlags
fn bitor(self, other: PairingHintFlags) -> PairingHintFlags
The bitwise or (|) of the bits in self and other.
Source§type Output = PairingHintFlags
type Output = PairingHintFlags
| operator.Source§impl BitOrAssign for PairingHintFlags
impl BitOrAssign for PairingHintFlags
Source§fn bitor_assign(&mut self, other: PairingHintFlags)
fn bitor_assign(&mut self, other: PairingHintFlags)
The bitwise or (|) of the bits in self and other.
Source§impl BitXor for PairingHintFlags
impl BitXor for PairingHintFlags
Source§fn bitxor(self, other: PairingHintFlags) -> PairingHintFlags
fn bitxor(self, other: PairingHintFlags) -> PairingHintFlags
The bitwise exclusive-or (^) of the bits in self and other.
Source§type Output = PairingHintFlags
type Output = PairingHintFlags
^ operator.Source§impl BitXorAssign for PairingHintFlags
impl BitXorAssign for PairingHintFlags
Source§fn bitxor_assign(&mut self, other: PairingHintFlags)
fn bitxor_assign(&mut self, other: PairingHintFlags)
The bitwise exclusive-or (^) of the bits in self and other.
Source§impl Clone for PairingHintFlags
impl Clone for PairingHintFlags
Source§fn clone(&self) -> PairingHintFlags
fn clone(&self) -> PairingHintFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PairingHintFlags
Source§impl Debug for PairingHintFlags
impl Debug for PairingHintFlags
Source§impl Default for PairingHintFlags
impl Default for PairingHintFlags
Source§fn default() -> PairingHintFlags
fn default() -> PairingHintFlags
impl Eq for PairingHintFlags
Source§impl Extend<PairingHintFlags> for PairingHintFlags
impl Extend<PairingHintFlags> for PairingHintFlags
Source§fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = PairingHintFlags>,
fn extend<T>(&mut self, iterator: T)where
T: IntoIterator<Item = PairingHintFlags>,
The bitwise or (|) of the bits in each flags value.
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 Flags for PairingHintFlags
impl Flags for PairingHintFlags
Source§const FLAGS: &'static [Flag<PairingHintFlags>]
const FLAGS: &'static [Flag<PairingHintFlags>]
Source§fn from_bits_retain(bits: u32) -> PairingHintFlags
fn from_bits_retain(bits: u32) -> PairingHintFlags
Source§fn all_named() -> PairingHintFlags
fn all_named() -> PairingHintFlags
Source§fn known_bits(&self) -> Self::Bits
fn known_bits(&self) -> Self::Bits
Source§fn unknown_bits(&self) -> Self::Bits
fn unknown_bits(&self) -> Self::Bits
Source§fn contains_unknown_bits(&self) -> bool
fn contains_unknown_bits(&self) -> bool
true if any unknown bits are set.Source§fn from_bits_truncate(bits: Self::Bits) -> Self
fn from_bits_truncate(bits: Self::Bits) -> Self
Source§fn from_name(name: &str) -> Option<Self>
fn from_name(name: &str) -> Option<Self>
Source§fn iter_names(&self) -> IterNames<Self> ⓘ
fn iter_names(&self) -> IterNames<Self> ⓘ
Source§fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
fn iter_defined_names() -> IterDefinedNames<Self> ⓘ
Self::FLAGS.Source§fn iter_equal_names(&self) -> IterEqualNames<Self> ⓘ
fn iter_equal_names(&self) -> IterEqualNames<Self> ⓘ
Source§fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
fn intersects(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.Source§fn contains(&self, other: Self) -> boolwhere
Self: Sized,
fn contains(&self, other: Self) -> boolwhere
Self: Sized,
other are also set in self.Source§fn insert(&mut self, other: Self)where
Self: Sized,
fn insert(&mut self, other: Self)where
Self: Sized,
|) of the bits in self and other.Source§fn toggle(&mut self, other: Self)where
Self: Sized,
fn toggle(&mut self, other: Self)where
Self: Sized,
^) of the bits in self and other.Source§fn intersection(self, other: Self) -> Self
fn intersection(self, other: Self) -> Self
&) of the bits in self and other.Source§fn difference(self, other: Self) -> Self
fn difference(self, other: Self) -> Self
Source§fn symmetric_difference(self, other: Self) -> Self
fn symmetric_difference(self, other: Self) -> Self
^) of the bits in self and other.Source§fn complement(self) -> Self
fn complement(self) -> Self
!) of the bits in self, truncating the result.Source§impl FromIterator<PairingHintFlags> for PairingHintFlags
impl FromIterator<PairingHintFlags> for PairingHintFlags
Source§fn from_iter<T>(iterator: T) -> PairingHintFlagswhere
T: IntoIterator<Item = PairingHintFlags>,
fn from_iter<T>(iterator: T) -> PairingHintFlagswhere
T: IntoIterator<Item = PairingHintFlags>,
The bitwise or (|) of the bits in each flags value.
Source§impl Hash for PairingHintFlags
impl Hash for PairingHintFlags
Source§impl IntoIterator for PairingHintFlags
impl IntoIterator for PairingHintFlags
Source§type Item = PairingHintFlags
type Item = PairingHintFlags
Source§type IntoIter = Iter<PairingHintFlags>
type IntoIter = Iter<PairingHintFlags>
Source§fn into_iter(self) -> <PairingHintFlags as IntoIterator>::IntoIter
fn into_iter(self) -> <PairingHintFlags as IntoIterator>::IntoIter
Source§impl LowerHex for PairingHintFlags
impl LowerHex for PairingHintFlags
Source§impl Not for PairingHintFlags
impl Not for PairingHintFlags
Source§fn not(self) -> PairingHintFlags
fn not(self) -> PairingHintFlags
The bitwise negation (!) of the bits in self, truncating the result.
Source§type Output = PairingHintFlags
type Output = PairingHintFlags
! operator.Source§impl Octal for PairingHintFlags
impl Octal for PairingHintFlags
Source§impl PartialEq for PairingHintFlags
impl PartialEq for PairingHintFlags
impl StructuralPartialEq for PairingHintFlags
Source§impl Sub for PairingHintFlags
impl Sub for PairingHintFlags
Source§fn sub(self, other: PairingHintFlags) -> PairingHintFlags
fn sub(self, other: PairingHintFlags) -> PairingHintFlags
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Source§type Output = PairingHintFlags
type Output = PairingHintFlags
- operator.Source§impl SubAssign for PairingHintFlags
impl SubAssign for PairingHintFlags
Source§fn sub_assign(&mut self, other: PairingHintFlags)
fn sub_assign(&mut self, other: PairingHintFlags)
The intersection of self with the complement of other (&!).
This method is not equivalent to self & !other when other has unknown bits set.
difference won’t truncate other, but the ! operator will.
Auto Trait Implementations§
impl Freeze for PairingHintFlags
impl RefUnwindSafe for PairingHintFlags
impl Send for PairingHintFlags
impl Sync for PairingHintFlags
impl Unpin for PairingHintFlags
impl UnsafeUnpin for PairingHintFlags
impl UnwindSafe for PairingHintFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more