Struct ClientIdMask
pub struct ClientIdMask(/* private fields */);Implementations§
§impl ClientIdMask
impl ClientIdMask
pub const CLIENT_XID: ClientIdMask
pub const LOCAL_CLIENT_PID: ClientIdMask
§impl ClientIdMask
impl ClientIdMask
pub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> bool
Check if this object has all bits set that are also set in flag.
flag can be a single enum variant or a whole other mask.
pub fn intersects(self, flag: impl Into<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> bool
Check if this object has some bits set that are also set in flag.
flag can be a single enum variant or a whole other mask.
pub fn remove(self, flags: impl Into<u32>) -> ClientIdMask
pub fn remove(self, flags: impl Into<u32>) -> ClientIdMask
Remove some flags.
All bits that are set in the given flags are removed from the self instance, if
they are present.
Trait Implementations§
§impl BitAnd<u32> for ClientIdMask
impl BitAnd<u32> for ClientIdMask
§impl BitAnd for ClientIdMask
impl BitAnd for ClientIdMask
§type Output = ClientIdMask
type Output = ClientIdMask
The resulting type after applying the
& operator.§fn bitand(self, other: ClientIdMask) -> <ClientIdMask as BitAnd>::Output
fn bitand(self, other: ClientIdMask) -> <ClientIdMask as BitAnd>::Output
Performs the
& operation. Read more§impl BitAndAssign<u32> for ClientIdMask
impl BitAndAssign<u32> for ClientIdMask
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&= operation. Read more§impl BitAndAssign for ClientIdMask
impl BitAndAssign for ClientIdMask
§fn bitand_assign(&mut self, other: ClientIdMask)
fn bitand_assign(&mut self, other: ClientIdMask)
Performs the
&= operation. Read more§impl BitOr<u32> for ClientIdMask
impl BitOr<u32> for ClientIdMask
§impl BitOr for ClientIdMask
impl BitOr for ClientIdMask
§type Output = ClientIdMask
type Output = ClientIdMask
The resulting type after applying the
| operator.§fn bitor(self, other: ClientIdMask) -> <ClientIdMask as BitOr>::Output
fn bitor(self, other: ClientIdMask) -> <ClientIdMask as BitOr>::Output
Performs the
| operation. Read more§impl BitOrAssign<u32> for ClientIdMask
impl BitOrAssign<u32> for ClientIdMask
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|= operation. Read more§impl BitOrAssign for ClientIdMask
impl BitOrAssign for ClientIdMask
§fn bitor_assign(&mut self, other: ClientIdMask)
fn bitor_assign(&mut self, other: ClientIdMask)
Performs the
|= operation. Read more§impl Clone for ClientIdMask
impl Clone for ClientIdMask
§fn clone(&self) -> ClientIdMask
fn clone(&self) -> ClientIdMask
Returns a duplicate 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 more§impl Debug for ClientIdMask
impl Debug for ClientIdMask
§impl Default for ClientIdMask
impl Default for ClientIdMask
§fn default() -> ClientIdMask
fn default() -> ClientIdMask
Returns the “default value” for a type. Read more
§impl From<u16> for ClientIdMask
impl From<u16> for ClientIdMask
§fn from(value: u16) -> ClientIdMask
fn from(value: u16) -> ClientIdMask
Converts to this type from the input type.
§impl From<u32> for ClientIdMask
impl From<u32> for ClientIdMask
§fn from(value: u32) -> ClientIdMask
fn from(value: u32) -> ClientIdMask
Converts to this type from the input type.
§impl From<u8> for ClientIdMask
impl From<u8> for ClientIdMask
§fn from(value: u8) -> ClientIdMask
fn from(value: u8) -> ClientIdMask
Converts to this type from the input type.
§impl Hash for ClientIdMask
impl Hash for ClientIdMask
§impl Ord for ClientIdMask
impl Ord for ClientIdMask
§impl PartialEq for ClientIdMask
impl PartialEq for ClientIdMask
§impl PartialOrd for ClientIdMask
impl PartialOrd for ClientIdMask
impl Copy for ClientIdMask
impl Eq for ClientIdMask
impl StructuralPartialEq for ClientIdMask
Auto Trait Implementations§
impl Freeze for ClientIdMask
impl RefUnwindSafe for ClientIdMask
impl Send for ClientIdMask
impl Sync for ClientIdMask
impl Unpin for ClientIdMask
impl UnwindSafe for ClientIdMask
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