Struct sttp::transport::StateFlags  
source · pub struct StateFlags(_);Expand description
Defines the bitflags representing the possible quality states of a Measurement value.
Trait Implementations§
source§impl Binary for StateFlags
 
impl Binary for StateFlags
source§impl BitAnd<StateFlags> for StateFlags
 
impl BitAnd<StateFlags> for StateFlags
source§impl BitAndAssign<StateFlags> for StateFlags
 
impl BitAndAssign<StateFlags> for StateFlags
source§fn bitand_assign(&mut self, other: Self)
 
fn bitand_assign(&mut self, other: Self)
Disables all flags disabled in the set.
source§impl BitFlags for StateFlags
 
impl BitFlags for StateFlags
§type IterNames = IterRaw
 
type IterNames = IterRaw
An iterator over the raw names and bits for enabled flags in an instance of the type.
source§fn from_bits(bits: u32) -> Option<StateFlags>
 
fn from_bits(bits: u32) -> Option<StateFlags>
Convert from underlying bit representation, unless that
representation contains bits that do not correspond to a flag.
source§fn from_bits_truncate(bits: u32) -> StateFlags
 
fn from_bits_truncate(bits: u32) -> StateFlags
Convert from underlying bit representation, dropping any bits
that do not correspond to flags.
source§fn from_bits_retain(bits: u32) -> StateFlags
 
fn from_bits_retain(bits: u32) -> StateFlags
Convert from underlying bit representation, preserving all
bits (even those not corresponding to a defined flag).
source§fn iter_names(&self) -> Self::IterNames
 
fn iter_names(&self) -> Self::IterNames
Iterate over the raw names and bits for enabled flag values.
source§fn intersects(&self, other: StateFlags) -> bool
 
fn intersects(&self, other: StateFlags) -> bool
Returns 
true if there are flags common to both self and other.source§fn contains(&self, other: StateFlags) -> bool
 
fn contains(&self, other: StateFlags) -> bool
Returns 
true if all of the flags in other are contained within self.source§fn insert(&mut self, other: StateFlags)
 
fn insert(&mut self, other: StateFlags)
Inserts the specified flags in-place.
source§fn remove(&mut self, other: StateFlags)
 
fn remove(&mut self, other: StateFlags)
Removes the specified flags in-place.
source§fn toggle(&mut self, other: StateFlags)
 
fn toggle(&mut self, other: StateFlags)
Toggles the specified flags in-place.
source§fn set(&mut self, other: StateFlags, value: bool)
 
fn set(&mut self, other: StateFlags, value: bool)
Inserts or removes the specified flags depending on the passed value.
source§impl BitOr<StateFlags> for StateFlags
 
impl BitOr<StateFlags> for StateFlags
source§fn bitor(self, other: StateFlags) -> Self
 
fn bitor(self, other: StateFlags) -> Self
Returns the union of the two sets of flags.
§type Output = StateFlags
 
type Output = StateFlags
The resulting type after applying the 
| operator.source§impl BitOrAssign<StateFlags> for StateFlags
 
impl BitOrAssign<StateFlags> for StateFlags
source§fn bitor_assign(&mut self, other: Self)
 
fn bitor_assign(&mut self, other: Self)
Adds the set of flags.
source§impl BitXor<StateFlags> for StateFlags
 
impl BitXor<StateFlags> for StateFlags
source§impl BitXorAssign<StateFlags> for StateFlags
 
impl BitXorAssign<StateFlags> for StateFlags
source§fn bitxor_assign(&mut self, other: Self)
 
fn bitxor_assign(&mut self, other: Self)
Toggles the set of flags.
source§impl Clone for StateFlags
 
impl Clone for StateFlags
source§fn clone(&self) -> StateFlags
 
fn clone(&self) -> StateFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for StateFlags
 
impl Debug for StateFlags
source§impl Default for StateFlags
 
impl Default for StateFlags
source§fn default() -> StateFlags
 
fn default() -> StateFlags
Returns the “default value” for a type. Read more
source§impl Extend<StateFlags> for StateFlags
 
impl Extend<StateFlags> for StateFlags
source§fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
 
fn extend<T: IntoIterator<Item = Self>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
 
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
 
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl FromIterator<StateFlags> for StateFlags
 
impl FromIterator<StateFlags> for StateFlags
source§fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
 
fn from_iter<T: IntoIterator<Item = Self>>(iterator: T) -> Self
Creates a value from an iterator. Read more
source§impl Hash for StateFlags
 
impl Hash for StateFlags
source§impl IntoIterator for StateFlags
 
impl IntoIterator for StateFlags
source§impl LowerHex for StateFlags
 
impl LowerHex for StateFlags
source§impl Not for StateFlags
 
impl Not for StateFlags
source§impl Octal for StateFlags
 
impl Octal for StateFlags
source§impl Ord for StateFlags
 
impl Ord for StateFlags
source§fn cmp(&self, other: &StateFlags) -> Ordering
 
fn cmp(&self, other: &StateFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<StateFlags> for StateFlags
 
impl PartialEq<StateFlags> for StateFlags
source§fn eq(&self, other: &StateFlags) -> bool
 
fn eq(&self, other: &StateFlags) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<StateFlags> for StateFlags
 
impl PartialOrd<StateFlags> for StateFlags
source§fn partial_cmp(&self, other: &StateFlags) -> Option<Ordering>
 
fn partial_cmp(&self, other: &StateFlags) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moresource§impl PublicFlags for StateFlags
 
impl PublicFlags for StateFlags
source§impl Sub<StateFlags> for StateFlags
 
impl Sub<StateFlags> for StateFlags
source§impl SubAssign<StateFlags> for StateFlags
 
impl SubAssign<StateFlags> for StateFlags
source§fn sub_assign(&mut self, other: Self)
 
fn sub_assign(&mut self, other: Self)
Disables all flags enabled in the set.