Struct x11rb::protocol::xfixes::ClientDisconnectFlags
source · pub struct ClientDisconnectFlags(/* private fields */);
Expand description
Fields
Default
- The default behavior for regular clients: the X11 server won’t terminate as long as such clients are still connected, and should this client disconnect, the server will continue running so long as other clients (that have not set XFixesClientDisconnectFlagTerminate) are connected.Terminate
- Indicates to the X11 server that it can ignore the client and terminate itself even though the client is still connected to the X11 server.
Implementations§
source§impl ClientDisconnectFlags
impl ClientDisconnectFlags
pub const DEFAULT: ClientDisconnectFlags = _
pub const TERMINATE: ClientDisconnectFlags = _
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.
sourcepub fn remove(self, flags: impl Into<u32>) -> ClientDisconnectFlags
pub fn remove(self, flags: impl Into<u32>) -> ClientDisconnectFlags
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
source§impl BitAnd<u32> for ClientDisconnectFlags
impl BitAnd<u32> for ClientDisconnectFlags
source§impl BitAnd for ClientDisconnectFlags
impl BitAnd for ClientDisconnectFlags
§type Output = ClientDisconnectFlags
type Output = ClientDisconnectFlags
The resulting type after applying the
&
operator.source§fn bitand(
self,
other: ClientDisconnectFlags
) -> <ClientDisconnectFlags as BitAnd>::Output
fn bitand( self, other: ClientDisconnectFlags ) -> <ClientDisconnectFlags as BitAnd>::Output
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 BitAndAssign for ClientDisconnectFlags
impl BitAndAssign for ClientDisconnectFlags
source§fn bitand_assign(&mut self, other: ClientDisconnectFlags)
fn bitand_assign(&mut self, other: ClientDisconnectFlags)
Performs the
&=
operation. Read moresource§impl BitOr<u32> for ClientDisconnectFlags
impl BitOr<u32> for ClientDisconnectFlags
source§impl BitOr for ClientDisconnectFlags
impl BitOr for ClientDisconnectFlags
§type Output = ClientDisconnectFlags
type Output = ClientDisconnectFlags
The resulting type after applying the
|
operator.source§fn bitor(
self,
other: ClientDisconnectFlags
) -> <ClientDisconnectFlags as BitOr>::Output
fn bitor( self, other: ClientDisconnectFlags ) -> <ClientDisconnectFlags as BitOr>::Output
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 BitOrAssign for ClientDisconnectFlags
impl BitOrAssign for ClientDisconnectFlags
source§fn bitor_assign(&mut self, other: ClientDisconnectFlags)
fn bitor_assign(&mut self, other: ClientDisconnectFlags)
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 for ClientDisconnectFlags
impl PartialEq 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 for ClientDisconnectFlags
impl PartialOrd 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