Struct x11rb_async::protocol::xfixes::ClientDisconnectFlags
source · pub struct ClientDisconnectFlags(_);Implementations§
source§impl ClientDisconnectFlags
impl ClientDisconnectFlags
pub const DEFAULT: ClientDisconnectFlags = Self(0)
pub const TERMINATE: ClientDisconnectFlags = Self(1 << 0)
source§impl ClientDisconnectFlags
impl ClientDisconnectFlags
sourcepub 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.
sourcepub 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.
Trait Implementations§
source§impl BitAnd<ClientDisconnectFlags> for ClientDisconnectFlags
impl BitAnd<ClientDisconnectFlags> for ClientDisconnectFlags
§type Output = ClientDisconnectFlags
type Output = ClientDisconnectFlags
The resulting type after applying the
& operator.source§fn bitand(
self,
other: ClientDisconnectFlags
) -> <ClientDisconnectFlags as BitAnd<ClientDisconnectFlags>>::Output
fn bitand( self, other: ClientDisconnectFlags ) -> <ClientDisconnectFlags as BitAnd<ClientDisconnectFlags>>::Output
Performs the
& operation. Read moresource§impl BitAnd<u32> for ClientDisconnectFlags
impl BitAnd<u32> for ClientDisconnectFlags
source§impl BitAndAssign<ClientDisconnectFlags> for ClientDisconnectFlags
impl BitAndAssign<ClientDisconnectFlags> for ClientDisconnectFlags
source§fn bitand_assign(&mut self, other: ClientDisconnectFlags)
fn bitand_assign(&mut self, other: ClientDisconnectFlags)
Performs the
&= operation. Read moresource§impl BitAndAssign<u32> for ClientDisconnectFlags
impl BitAndAssign<u32> for ClientDisconnectFlags
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&= operation. Read moresource§impl BitOr<ClientDisconnectFlags> for ClientDisconnectFlags
impl BitOr<ClientDisconnectFlags> for ClientDisconnectFlags
§type Output = ClientDisconnectFlags
type Output = ClientDisconnectFlags
The resulting type after applying the
| operator.source§fn bitor(
self,
other: ClientDisconnectFlags
) -> <ClientDisconnectFlags as BitOr<ClientDisconnectFlags>>::Output
fn bitor( self, other: ClientDisconnectFlags ) -> <ClientDisconnectFlags as BitOr<ClientDisconnectFlags>>::Output
Performs the
| operation. Read moresource§impl BitOr<u32> for ClientDisconnectFlags
impl BitOr<u32> for ClientDisconnectFlags
source§impl BitOrAssign<ClientDisconnectFlags> for ClientDisconnectFlags
impl BitOrAssign<ClientDisconnectFlags> for ClientDisconnectFlags
source§fn bitor_assign(&mut self, other: ClientDisconnectFlags)
fn bitor_assign(&mut self, other: ClientDisconnectFlags)
Performs the
|= operation. Read moresource§impl BitOrAssign<u32> for ClientDisconnectFlags
impl BitOrAssign<u32> for ClientDisconnectFlags
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|= operation. Read moresource§impl Clone for ClientDisconnectFlags
impl Clone for ClientDisconnectFlags
source§fn clone(&self) -> ClientDisconnectFlags
fn clone(&self) -> ClientDisconnectFlags
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 ClientDisconnectFlags
impl Debug for ClientDisconnectFlags
source§impl Default for ClientDisconnectFlags
impl Default for ClientDisconnectFlags
source§fn default() -> ClientDisconnectFlags
fn default() -> ClientDisconnectFlags
Returns the “default value” for a type. Read more
source§impl From<u16> for ClientDisconnectFlags
impl From<u16> for ClientDisconnectFlags
source§fn from(value: u16) -> ClientDisconnectFlags
fn from(value: u16) -> ClientDisconnectFlags
Converts to this type from the input type.
source§impl From<u32> for ClientDisconnectFlags
impl From<u32> for ClientDisconnectFlags
source§fn from(value: u32) -> ClientDisconnectFlags
fn from(value: u32) -> ClientDisconnectFlags
Converts to this type from the input type.
source§impl From<u8> for ClientDisconnectFlags
impl From<u8> for ClientDisconnectFlags
source§fn from(value: u8) -> ClientDisconnectFlags
fn from(value: u8) -> ClientDisconnectFlags
Converts to this type from the input type.
source§impl Hash for ClientDisconnectFlags
impl Hash for ClientDisconnectFlags
source§impl Ord for ClientDisconnectFlags
impl Ord for ClientDisconnectFlags
source§fn cmp(&self, other: &ClientDisconnectFlags) -> Ordering
fn cmp(&self, other: &ClientDisconnectFlags) -> 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<ClientDisconnectFlags> for ClientDisconnectFlags
impl PartialEq<ClientDisconnectFlags> for ClientDisconnectFlags
source§fn eq(&self, other: &ClientDisconnectFlags) -> bool
fn eq(&self, other: &ClientDisconnectFlags) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ClientDisconnectFlags> for ClientDisconnectFlags
impl PartialOrd<ClientDisconnectFlags> for ClientDisconnectFlags
source§fn partial_cmp(&self, other: &ClientDisconnectFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &ClientDisconnectFlags) -> 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 moreimpl Copy for ClientDisconnectFlags
impl Eq for ClientDisconnectFlags
impl StructuralEq for ClientDisconnectFlags
impl StructuralPartialEq for ClientDisconnectFlags
Auto Trait Implementations§
impl RefUnwindSafe for ClientDisconnectFlags
impl Send for ClientDisconnectFlags
impl Sync for ClientDisconnectFlags
impl Unpin for ClientDisconnectFlags
impl UnwindSafe for ClientDisconnectFlags
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