Struct opcua_types::StatusCodeBits [−]
pub struct StatusCodeBits { /* fields omitted */ }
Methods
impl StatusCodeBits
impl StatusCodeBits
pub const STATUS_MASK: StatusCodeBits
STATUS_MASK: StatusCodeBits = StatusCodeBits{bits: 4294901760,}
pub const BIT_MASK: StatusCodeBits
BIT_MASK: StatusCodeBits = StatusCodeBits{bits: 65535,}
pub const HISTORICAL_RAW: StatusCodeBits
HISTORICAL_RAW: StatusCodeBits = StatusCodeBits{bits: 0,}
pub const HISTORICAL_CALCULATED: StatusCodeBits
HISTORICAL_CALCULATED: StatusCodeBits = StatusCodeBits{bits: 1,}
pub const HISTORICAL_INTERPOLATED: StatusCodeBits
HISTORICAL_INTERPOLATED: StatusCodeBits = StatusCodeBits{bits: 2,}
pub const HISTORICAL_RESERVED: StatusCodeBits
HISTORICAL_RESERVED: StatusCodeBits = StatusCodeBits{bits: 3,}
pub const HISTORICAL_PARTIAL: StatusCodeBits
HISTORICAL_PARTIAL: StatusCodeBits = StatusCodeBits{bits: 4,}
pub const HISTORICAL_EXTRA_DATA: StatusCodeBits
HISTORICAL_EXTRA_DATA: StatusCodeBits = StatusCodeBits{bits: 8,}
pub const HISTORICAL_MULTI_VALUE: StatusCodeBits
HISTORICAL_MULTI_VALUE: StatusCodeBits = StatusCodeBits{bits: 16,}
pub const OVERFLOW: StatusCodeBits
OVERFLOW: StatusCodeBits = StatusCodeBits{bits: 128,}
pub const LIMIT_LOW: StatusCodeBits
LIMIT_LOW: StatusCodeBits = StatusCodeBits{bits: 256,}
pub const LIMIT_HIGH: StatusCodeBits
LIMIT_HIGH: StatusCodeBits = StatusCodeBits{bits: 512,}
pub const LIMIT_CONSTANT: StatusCodeBits
LIMIT_CONSTANT: StatusCodeBits = StatusCodeBits{bits: 768,}
pub const LIMIT_DATA_VALUE: StatusCodeBits
LIMIT_DATA_VALUE: StatusCodeBits = StatusCodeBits{bits: 512,}
pub const SEMANTICS_CHANGED: StatusCodeBits
SEMANTICS_CHANGED: StatusCodeBits = StatusCodeBits{bits: 16384,}
pub const STRUCTURE_CHANGED: StatusCodeBits
STRUCTURE_CHANGED: StatusCodeBits = StatusCodeBits{bits: 32768,}
pub fn empty() -> StatusCodeBits
pub fn empty() -> StatusCodeBits
Returns an empty set of flags.
pub fn all() -> StatusCodeBits
pub fn all() -> StatusCodeBits
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<StatusCodeBits>
pub fn from_bits(bits: u32) -> Option<StatusCodeBits>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> StatusCodeBits
pub fn from_bits_truncate(bits: u32) -> StatusCodeBits
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: StatusCodeBits) -> bool
pub fn intersects(&self, other: StatusCodeBits) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: StatusCodeBits) -> bool
pub fn contains(&self, other: StatusCodeBits) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: StatusCodeBits)
pub fn insert(&mut self, other: StatusCodeBits)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: StatusCodeBits)
pub fn remove(&mut self, other: StatusCodeBits)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: StatusCodeBits)
pub fn toggle(&mut self, other: StatusCodeBits)
Toggles the specified flags in-place.
pub fn set(&mut self, other: StatusCodeBits, value: bool)
pub fn set(&mut self, other: StatusCodeBits, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for StatusCodeBits
impl Copy for StatusCodeBits
impl PartialEq for StatusCodeBits
impl PartialEq for StatusCodeBits
fn eq(&self, other: &StatusCodeBits) -> bool
fn eq(&self, other: &StatusCodeBits) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &StatusCodeBits) -> bool
fn ne(&self, other: &StatusCodeBits) -> bool
This method tests for !=
.
impl Eq for StatusCodeBits
impl Eq for StatusCodeBits
impl Clone for StatusCodeBits
impl Clone for StatusCodeBits
fn clone(&self) -> StatusCodeBits
fn clone(&self) -> StatusCodeBits
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for StatusCodeBits
impl PartialOrd for StatusCodeBits
fn partial_cmp(&self, other: &StatusCodeBits) -> Option<Ordering>
fn partial_cmp(&self, other: &StatusCodeBits) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &StatusCodeBits) -> bool
fn lt(&self, other: &StatusCodeBits) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &StatusCodeBits) -> bool
fn le(&self, other: &StatusCodeBits) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &StatusCodeBits) -> bool
fn gt(&self, other: &StatusCodeBits) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &StatusCodeBits) -> bool
fn ge(&self, other: &StatusCodeBits) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for StatusCodeBits
impl Ord for StatusCodeBits
fn cmp(&self, other: &StatusCodeBits) -> Ordering
fn cmp(&self, other: &StatusCodeBits) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for StatusCodeBits
impl Hash for StatusCodeBits
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for StatusCodeBits
impl Debug for StatusCodeBits
impl Binary for StatusCodeBits
impl Binary for StatusCodeBits
impl Octal for StatusCodeBits
impl Octal for StatusCodeBits
impl LowerHex for StatusCodeBits
impl LowerHex for StatusCodeBits
impl UpperHex for StatusCodeBits
impl UpperHex for StatusCodeBits
impl BitOr for StatusCodeBits
impl BitOr for StatusCodeBits
type Output = StatusCodeBits
The resulting type after applying the |
operator.
fn bitor(self, other: StatusCodeBits) -> StatusCodeBits
fn bitor(self, other: StatusCodeBits) -> StatusCodeBits
Returns the union of the two sets of flags.
impl BitOrAssign for StatusCodeBits
impl BitOrAssign for StatusCodeBits
fn bitor_assign(&mut self, other: StatusCodeBits)
fn bitor_assign(&mut self, other: StatusCodeBits)
Adds the set of flags.
impl BitXor for StatusCodeBits
impl BitXor for StatusCodeBits
type Output = StatusCodeBits
The resulting type after applying the ^
operator.
fn bitxor(self, other: StatusCodeBits) -> StatusCodeBits
fn bitxor(self, other: StatusCodeBits) -> StatusCodeBits
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for StatusCodeBits
impl BitXorAssign for StatusCodeBits
fn bitxor_assign(&mut self, other: StatusCodeBits)
fn bitxor_assign(&mut self, other: StatusCodeBits)
Toggles the set of flags.
impl BitAnd for StatusCodeBits
impl BitAnd for StatusCodeBits
type Output = StatusCodeBits
The resulting type after applying the &
operator.
fn bitand(self, other: StatusCodeBits) -> StatusCodeBits
fn bitand(self, other: StatusCodeBits) -> StatusCodeBits
Returns the intersection between the two sets of flags.
impl BitAndAssign for StatusCodeBits
impl BitAndAssign for StatusCodeBits
fn bitand_assign(&mut self, other: StatusCodeBits)
fn bitand_assign(&mut self, other: StatusCodeBits)
Disables all flags disabled in the set.
impl Sub for StatusCodeBits
impl Sub for StatusCodeBits
type Output = StatusCodeBits
The resulting type after applying the -
operator.
fn sub(self, other: StatusCodeBits) -> StatusCodeBits
fn sub(self, other: StatusCodeBits) -> StatusCodeBits
Returns the set difference of the two sets of flags.
impl SubAssign for StatusCodeBits
impl SubAssign for StatusCodeBits
fn sub_assign(&mut self, other: StatusCodeBits)
fn sub_assign(&mut self, other: StatusCodeBits)
Disables all flags enabled in the set.
impl Not for StatusCodeBits
impl Not for StatusCodeBits
type Output = StatusCodeBits
The resulting type after applying the !
operator.
fn not(self) -> StatusCodeBits
fn not(self) -> StatusCodeBits
Returns the complement of this set of flags.
impl Extend<StatusCodeBits> for StatusCodeBits
impl Extend<StatusCodeBits> for StatusCodeBits
fn extend<T: IntoIterator<Item = StatusCodeBits>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = StatusCodeBits>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<StatusCodeBits> for StatusCodeBits
impl FromIterator<StatusCodeBits> for StatusCodeBits
fn from_iter<T: IntoIterator<Item = StatusCodeBits>>(
iterator: T
) -> StatusCodeBits
fn from_iter<T: IntoIterator<Item = StatusCodeBits>>(
iterator: T
) -> StatusCodeBits
Creates a value from an iterator. Read more
Auto Trait Implementations
impl Send for StatusCodeBits
impl Send for StatusCodeBits
impl Sync for StatusCodeBits
impl Sync for StatusCodeBits