pub struct Protocols { /* private fields */ }
Expand description
A mask of possible communication protocols.
Implementations§
source§impl Protocols
impl Protocols
pub const UNDEFINED: Protocols = _
pub const T0: Protocols = _
pub const T1: Protocols = _
pub const RAW: Protocols = _
pub const ANY: Protocols = _
sourcepub fn from_bits(bits: DWORD) -> Option<Protocols>
pub fn from_bits(bits: DWORD) -> Option<Protocols>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: DWORD) -> Protocols
pub const fn from_bits_truncate(bits: DWORD) -> Protocols
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: DWORD) -> Protocols
pub const unsafe fn from_bits_unchecked(bits: DWORD) -> Protocols
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: Protocols) -> bool
pub const fn intersects(&self, other: Protocols) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
source§impl BitAndAssign for Protocols
impl BitAndAssign for Protocols
source§fn bitand_assign(&mut self, other: Protocols)
fn bitand_assign(&mut self, other: Protocols)
Disables all flags disabled in the set.
source§impl BitOrAssign for Protocols
impl BitOrAssign for Protocols
source§fn bitor_assign(&mut self, other: Protocols)
fn bitor_assign(&mut self, other: Protocols)
Adds the set of flags.
source§impl BitXorAssign for Protocols
impl BitXorAssign for Protocols
source§fn bitxor_assign(&mut self, other: Protocols)
fn bitxor_assign(&mut self, other: Protocols)
Toggles the set of flags.
source§impl Extend<Protocols> for Protocols
impl Extend<Protocols> for Protocols
source§fn extend<T: IntoIterator<Item = Protocols>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Protocols>>(&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<Protocols> for Protocols
impl FromIterator<Protocols> for Protocols
source§impl Ord for Protocols
impl Ord for Protocols
source§impl PartialEq for Protocols
impl PartialEq for Protocols
source§impl PartialOrd for Protocols
impl PartialOrd for Protocols
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 SubAssign for Protocols
impl SubAssign for Protocols
source§fn sub_assign(&mut self, other: Protocols)
fn sub_assign(&mut self, other: Protocols)
Disables all flags enabled in the set.
impl Copy for Protocols
impl Eq for Protocols
impl StructuralEq for Protocols
impl StructuralPartialEq for Protocols
Auto Trait Implementations§
impl RefUnwindSafe for Protocols
impl Send for Protocols
impl Sync for Protocols
impl Unpin for Protocols
impl UnwindSafe for Protocols
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
Mutably borrows from an owned value. Read more