pub struct CapsExMask { /* private fields */ }Expand description
Extended capabilities mask used by the enhanced connect command.
Implementations§
Source§impl CapsExMask
impl CapsExMask
Sourcepub const Reconnect: CapsExMask
pub const Reconnect: CapsExMask
Support for reconnection
Sourcepub const Multitrack: CapsExMask
pub const Multitrack: CapsExMask
Support for multitrack
Sourcepub const ModEx: CapsExMask
pub const ModEx: CapsExMask
Can parse ModEx signal
Sourcepub const TimestampNanoOffset: CapsExMask
pub const TimestampNanoOffset: CapsExMask
Support for nano offset
Sourcepub const fn all_bits() -> Self
pub const fn all_bits() -> Self
Returns a bitmask that contains all values.
This will include bits that do not have any flags.
Use ::all_flags() if you only want to use flags.
Sourcepub const fn is_all_bits(&self) -> bool
pub const fn is_all_bits(&self) -> bool
Returns true if the bitmask contains all values.
This will check for bits == !0,
use .is_all_flags() if you only want to check for all flags
Sourcepub const fn is_all_flags(&self) -> bool
pub const fn is_all_flags(&self) -> bool
Returns true if the bitmask contains all flags.
This will fail if any unused bit is set,
consider using .truncate() first.
Sourcepub const fn all() -> Self
👎Deprecated: Please use the ::all_bits() constructor
pub const fn all() -> Self
::all_bits() constructorReturns a bitmask that contains all values.
This will include bits that do not have any flags.
Use ::all_flags() if you only want to use flags.
Sourcepub const fn is_all(&self) -> bool
👎Deprecated: Please use the .is_all_bits() method
pub const fn is_all(&self) -> bool
.is_all_bits() methodReturns true if the bitmask contains all values.
This will check for bits == !0,
use .is_all_flags() if you only want to check for all flags
Sourcepub const fn full() -> Self
👎Deprecated: Please use the ::all_flags() constructor
pub const fn full() -> Self
::all_flags() constructorReturns a bitmask that contains all flags.
Sourcepub const fn is_full(&self) -> bool
👎Deprecated: Please use the .is_all_flags() method
pub const fn is_full(&self) -> bool
.is_all_flags() methodReturns true if the bitmask contains all flags.
This will fail if any unused bit is set,
consider using .truncate() first.
Sourcepub const fn truncate(&self) -> Self
pub const fn truncate(&self) -> Self
Returns a bitmask that only has bits corresponding to flags
Sourcepub const fn intersects(&self, other: Self) -> bool
pub const fn intersects(&self, other: Self) -> bool
Returns true if self intersects with any value in other,
or if other does not contain any values.
This is equivalent to (self & other) != 0 || other == 0.
Trait Implementations§
Source§impl Binary for CapsExMask
impl Binary for CapsExMask
Source§impl BitAnd for CapsExMask
impl BitAnd for CapsExMask
Source§impl BitAndAssign for CapsExMask
impl BitAndAssign for CapsExMask
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for CapsExMask
impl BitOr for CapsExMask
Source§impl BitOrAssign for CapsExMask
impl BitOrAssign for CapsExMask
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitXor for CapsExMask
impl BitXor for CapsExMask
Source§impl BitXorAssign for CapsExMask
impl BitXorAssign for CapsExMask
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for CapsExMask
impl Clone for CapsExMask
Source§fn clone(&self) -> CapsExMask
fn clone(&self) -> CapsExMask
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CapsExMask
impl Debug for CapsExMask
Source§impl<'de> Deserialize<'de> for CapsExMask
impl<'de> Deserialize<'de> for CapsExMask
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<CapsExMask> for u8
impl From<CapsExMask> for u8
Source§fn from(val: CapsExMask) -> u8
fn from(val: CapsExMask) -> u8
Source§impl From<u8> for CapsExMask
impl From<u8> for CapsExMask
Source§impl Hash for CapsExMask
impl Hash for CapsExMask
Source§impl LowerHex for CapsExMask
impl LowerHex for CapsExMask
Source§impl Not for CapsExMask
impl Not for CapsExMask
Source§impl Octal for CapsExMask
impl Octal for CapsExMask
Source§impl Ord for CapsExMask
impl Ord for CapsExMask
Source§fn cmp(&self, other: &CapsExMask) -> Ordering
fn cmp(&self, other: &CapsExMask) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq<u8> for CapsExMask
impl PartialEq<u8> for CapsExMask
Source§impl PartialEq for CapsExMask
impl PartialEq for CapsExMask
Source§impl PartialOrd for CapsExMask
impl PartialOrd for CapsExMask
Source§impl UpperHex for CapsExMask
impl UpperHex for CapsExMask
impl Copy for CapsExMask
impl Eq for CapsExMask
impl StructuralPartialEq for CapsExMask
Auto Trait Implementations§
impl Freeze for CapsExMask
impl RefUnwindSafe for CapsExMask
impl Send for CapsExMask
impl Sync for CapsExMask
impl Unpin for CapsExMask
impl UnwindSafe for CapsExMask
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.