Struct ClientDisconnectFlags
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§
§impl ClientDisconnectFlags
impl ClientDisconnectFlags
pub const DEFAULT: ClientDisconnectFlags = _
pub const TERMINATE: ClientDisconnectFlags = _
§impl ClientDisconnectFlags
impl ClientDisconnectFlags
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>) -> 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§
§impl BitAnd<u32> for ClientDisconnectFlags
impl BitAnd<u32> for ClientDisconnectFlags
§impl BitAnd for ClientDisconnectFlags
impl BitAnd for ClientDisconnectFlags
§type Output = ClientDisconnectFlags
type Output = ClientDisconnectFlags
The resulting type after applying the
&
operator.§fn bitand(
self,
other: ClientDisconnectFlags,
) -> <ClientDisconnectFlags as BitAnd>::Output
fn bitand( self, other: ClientDisconnectFlags, ) -> <ClientDisconnectFlags as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for ClientDisconnectFlags
impl BitAndAssign<u32> for ClientDisconnectFlags
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for ClientDisconnectFlags
impl BitAndAssign for ClientDisconnectFlags
§fn bitand_assign(&mut self, other: ClientDisconnectFlags)
fn bitand_assign(&mut self, other: ClientDisconnectFlags)
Performs the
&=
operation. Read more§impl BitOr<u32> for ClientDisconnectFlags
impl BitOr<u32> for ClientDisconnectFlags
§impl BitOr for ClientDisconnectFlags
impl BitOr for ClientDisconnectFlags
§type Output = ClientDisconnectFlags
type Output = ClientDisconnectFlags
The resulting type after applying the
|
operator.§fn bitor(
self,
other: ClientDisconnectFlags,
) -> <ClientDisconnectFlags as BitOr>::Output
fn bitor( self, other: ClientDisconnectFlags, ) -> <ClientDisconnectFlags as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for ClientDisconnectFlags
impl BitOrAssign<u32> for ClientDisconnectFlags
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for ClientDisconnectFlags
impl BitOrAssign for ClientDisconnectFlags
§fn bitor_assign(&mut self, other: ClientDisconnectFlags)
fn bitor_assign(&mut self, other: ClientDisconnectFlags)
Performs the
|=
operation. Read more§impl Clone for ClientDisconnectFlags
impl Clone for ClientDisconnectFlags
§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 more§impl Debug for ClientDisconnectFlags
impl Debug for ClientDisconnectFlags
§impl Default for ClientDisconnectFlags
impl Default for ClientDisconnectFlags
§fn default() -> ClientDisconnectFlags
fn default() -> ClientDisconnectFlags
Returns the “default value” for a type. Read more
§impl From<u16> for ClientDisconnectFlags
impl From<u16> for ClientDisconnectFlags
§fn from(value: u16) -> ClientDisconnectFlags
fn from(value: u16) -> ClientDisconnectFlags
Converts to this type from the input type.
§impl From<u32> for ClientDisconnectFlags
impl From<u32> for ClientDisconnectFlags
§fn from(value: u32) -> ClientDisconnectFlags
fn from(value: u32) -> ClientDisconnectFlags
Converts to this type from the input type.
§impl From<u8> for ClientDisconnectFlags
impl From<u8> for ClientDisconnectFlags
§fn from(value: u8) -> ClientDisconnectFlags
fn from(value: u8) -> ClientDisconnectFlags
Converts to this type from the input type.
§impl Hash for ClientDisconnectFlags
impl Hash for ClientDisconnectFlags
§impl Ord for ClientDisconnectFlags
impl Ord for ClientDisconnectFlags
§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
§impl PartialEq for ClientDisconnectFlags
impl PartialEq for ClientDisconnectFlags
§impl PartialOrd for ClientDisconnectFlags
impl PartialOrd for ClientDisconnectFlags
impl Copy for ClientDisconnectFlags
impl Eq for ClientDisconnectFlags
impl StructuralPartialEq for ClientDisconnectFlags
Auto Trait Implementations§
impl Freeze for ClientDisconnectFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)