pub struct AppControlSet { /* private fields */ }Expand description
Implementations§
Source§impl AppControlSet
impl AppControlSet
Sourcepub const fn to_linux_signals(self) -> LinuxSignalSet
Available on crate feature _linux_abi only.
pub const fn to_linux_signals(self) -> LinuxSignalSet
_linux_abi only.Returns the Linux signals needed to receive these app controls.
Source§impl AppControlSet
impl AppControlSet
Sourcepub fn for_each(self, f: impl FnMut(AppControl))
pub fn for_each(self, f: impl FnMut(AppControl))
Calls f for each control notice in this set.
Source§impl AppControlSet
Named constants
impl AppControlSet
Named constants
Source§impl AppControlSet
Convenience methods derived from each named constant.
impl AppControlSet
Convenience methods derived from each named constant.
Sourcepub const fn has_interrupt(self) -> bool
pub const fn has_interrupt(self) -> bool
Returns true if Interrupt is present.
Sourcepub const fn contains_interrupt(self) -> bool
pub const fn contains_interrupt(self) -> bool
Returns true if all bits in Interrupt are present.
Sourcepub const fn intersects_interrupt(self) -> bool
pub const fn intersects_interrupt(self) -> bool
Returns true if the set shares any bit with Interrupt.
Sourcepub const fn with_interrupt(self) -> Self
pub const fn with_interrupt(self) -> Self
Returns self with Interrupt inserted.
Sourcepub const fn with_interrupt_if(self, condition: bool) -> Self
pub const fn with_interrupt_if(self, condition: bool) -> Self
Returns self with Interrupt inserted if condition is true.
Sourcepub const fn without_interrupt(self) -> Self
pub const fn without_interrupt(self) -> Self
Returns self with Interrupt removed.
Sourcepub const fn set_interrupt(&mut self)
pub const fn set_interrupt(&mut self)
Sets Interrupt.
Sourcepub const fn set_interrupt_if(&mut self, condition: bool)
pub const fn set_interrupt_if(&mut self, condition: bool)
Sets Interrupt if condition is true.
Sourcepub const fn unset_interrupt(&mut self)
pub const fn unset_interrupt(&mut self)
Unsets Interrupt.
Sourcepub const fn contains_quit(self) -> bool
pub const fn contains_quit(self) -> bool
Returns true if all bits in Quit are present.
Sourcepub const fn intersects_quit(self) -> bool
pub const fn intersects_quit(self) -> bool
Returns true if the set shares any bit with Quit.
Sourcepub const fn with_quit_if(self, condition: bool) -> Self
pub const fn with_quit_if(self, condition: bool) -> Self
Returns self with Quit inserted if condition is true.
Sourcepub const fn without_quit(self) -> Self
pub const fn without_quit(self) -> Self
Returns self with Quit removed.
Sourcepub const fn set_quit_if(&mut self, condition: bool)
pub const fn set_quit_if(&mut self, condition: bool)
Sets Quit if condition is true.
Sourcepub const fn unset_quit(&mut self)
pub const fn unset_quit(&mut self)
Unsets Quit.
Sourcepub const fn has_terminate(self) -> bool
pub const fn has_terminate(self) -> bool
Returns true if Terminate is present.
Sourcepub const fn contains_terminate(self) -> bool
pub const fn contains_terminate(self) -> bool
Returns true if all bits in Terminate are present.
Sourcepub const fn intersects_terminate(self) -> bool
pub const fn intersects_terminate(self) -> bool
Returns true if the set shares any bit with Terminate.
Sourcepub const fn with_terminate(self) -> Self
pub const fn with_terminate(self) -> Self
Returns self with Terminate inserted.
Sourcepub const fn with_terminate_if(self, condition: bool) -> Self
pub const fn with_terminate_if(self, condition: bool) -> Self
Returns self with Terminate inserted if condition is true.
Sourcepub const fn without_terminate(self) -> Self
pub const fn without_terminate(self) -> Self
Returns self with Terminate removed.
Sourcepub const fn set_terminate(&mut self)
pub const fn set_terminate(&mut self)
Sets Terminate.
Sourcepub const fn set_terminate_if(&mut self, condition: bool)
pub const fn set_terminate_if(&mut self, condition: bool)
Sets Terminate if condition is true.
Sourcepub const fn unset_terminate(&mut self)
pub const fn unset_terminate(&mut self)
Unsets Terminate.
Sourcepub const fn has_hangup(self) -> bool
pub const fn has_hangup(self) -> bool
Returns true if Hangup is present.
Sourcepub const fn contains_hangup(self) -> bool
pub const fn contains_hangup(self) -> bool
Returns true if all bits in Hangup are present.
Sourcepub const fn intersects_hangup(self) -> bool
pub const fn intersects_hangup(self) -> bool
Returns true if the set shares any bit with Hangup.
Sourcepub const fn with_hangup(self) -> Self
pub const fn with_hangup(self) -> Self
Returns self with Hangup inserted.
Sourcepub const fn with_hangup_if(self, condition: bool) -> Self
pub const fn with_hangup_if(self, condition: bool) -> Self
Returns self with Hangup inserted if condition is true.
Sourcepub const fn without_hangup(self) -> Self
pub const fn without_hangup(self) -> Self
Returns self with Hangup removed.
Sourcepub const fn set_hangup(&mut self)
pub const fn set_hangup(&mut self)
Sets Hangup.
Sourcepub const fn set_hangup_if(&mut self, condition: bool)
pub const fn set_hangup_if(&mut self, condition: bool)
Sets Hangup if condition is true.
Sourcepub const fn unset_hangup(&mut self)
pub const fn unset_hangup(&mut self)
Unsets Hangup.
Sourcepub const fn has_suspend(self) -> bool
pub const fn has_suspend(self) -> bool
Returns true if Suspend is present.
Sourcepub const fn contains_suspend(self) -> bool
pub const fn contains_suspend(self) -> bool
Returns true if all bits in Suspend are present.
Sourcepub const fn intersects_suspend(self) -> bool
pub const fn intersects_suspend(self) -> bool
Returns true if the set shares any bit with Suspend.
Sourcepub const fn with_suspend(self) -> Self
pub const fn with_suspend(self) -> Self
Returns self with Suspend inserted.
Sourcepub const fn with_suspend_if(self, condition: bool) -> Self
pub const fn with_suspend_if(self, condition: bool) -> Self
Returns self with Suspend inserted if condition is true.
Sourcepub const fn without_suspend(self) -> Self
pub const fn without_suspend(self) -> Self
Returns self with Suspend removed.
Sourcepub const fn set_suspend(&mut self)
pub const fn set_suspend(&mut self)
Sets Suspend.
Sourcepub const fn set_suspend_if(&mut self, condition: bool)
pub const fn set_suspend_if(&mut self, condition: bool)
Sets Suspend if condition is true.
Sourcepub const fn unset_suspend(&mut self)
pub const fn unset_suspend(&mut self)
Unsets Suspend.
Sourcepub const fn has_resume(self) -> bool
pub const fn has_resume(self) -> bool
Returns true if Resume is present.
Sourcepub const fn contains_resume(self) -> bool
pub const fn contains_resume(self) -> bool
Returns true if all bits in Resume are present.
Sourcepub const fn intersects_resume(self) -> bool
pub const fn intersects_resume(self) -> bool
Returns true if the set shares any bit with Resume.
Sourcepub const fn with_resume(self) -> Self
pub const fn with_resume(self) -> Self
Returns self with Resume inserted.
Sourcepub const fn with_resume_if(self, condition: bool) -> Self
pub const fn with_resume_if(self, condition: bool) -> Self
Returns self with Resume inserted if condition is true.
Sourcepub const fn without_resume(self) -> Self
pub const fn without_resume(self) -> Self
Returns self with Resume removed.
Sourcepub const fn set_resume(&mut self)
pub const fn set_resume(&mut self)
Sets Resume.
Sourcepub const fn set_resume_if(&mut self, condition: bool)
pub const fn set_resume_if(&mut self, condition: bool)
Sets Resume if condition is true.
Sourcepub const fn unset_resume(&mut self)
pub const fn unset_resume(&mut self)
Unsets Resume.
Sourcepub const fn contains_close(self) -> bool
pub const fn contains_close(self) -> bool
Returns true if all bits in Close are present.
Sourcepub const fn intersects_close(self) -> bool
pub const fn intersects_close(self) -> bool
Returns true if the set shares any bit with Close.
Sourcepub const fn with_close(self) -> Self
pub const fn with_close(self) -> Self
Returns self with Close inserted.
Sourcepub const fn with_close_if(self, condition: bool) -> Self
pub const fn with_close_if(self, condition: bool) -> Self
Returns self with Close inserted if condition is true.
Sourcepub const fn without_close(self) -> Self
pub const fn without_close(self) -> Self
Returns self with Close removed.
Sourcepub const fn set_close_if(&mut self, condition: bool)
pub const fn set_close_if(&mut self, condition: bool)
Sets Close if condition is true.
Sourcepub const fn unset_close(&mut self)
pub const fn unset_close(&mut self)
Unsets Close.
Sourcepub const fn has_logout(self) -> bool
pub const fn has_logout(self) -> bool
Returns true if Logout is present.
Sourcepub const fn contains_logout(self) -> bool
pub const fn contains_logout(self) -> bool
Returns true if all bits in Logout are present.
Sourcepub const fn intersects_logout(self) -> bool
pub const fn intersects_logout(self) -> bool
Returns true if the set shares any bit with Logout.
Sourcepub const fn with_logout(self) -> Self
pub const fn with_logout(self) -> Self
Returns self with Logout inserted.
Sourcepub const fn with_logout_if(self, condition: bool) -> Self
pub const fn with_logout_if(self, condition: bool) -> Self
Returns self with Logout inserted if condition is true.
Sourcepub const fn without_logout(self) -> Self
pub const fn without_logout(self) -> Self
Returns self with Logout removed.
Sourcepub const fn set_logout(&mut self)
pub const fn set_logout(&mut self)
Sets Logout.
Sourcepub const fn set_logout_if(&mut self, condition: bool)
pub const fn set_logout_if(&mut self, condition: bool)
Sets Logout if condition is true.
Sourcepub const fn unset_logout(&mut self)
pub const fn unset_logout(&mut self)
Unsets Logout.
Sourcepub const fn has_shutdown(self) -> bool
pub const fn has_shutdown(self) -> bool
Returns true if Shutdown is present.
Sourcepub const fn contains_shutdown(self) -> bool
pub const fn contains_shutdown(self) -> bool
Returns true if all bits in Shutdown are present.
Sourcepub const fn intersects_shutdown(self) -> bool
pub const fn intersects_shutdown(self) -> bool
Returns true if the set shares any bit with Shutdown.
Sourcepub const fn with_shutdown(self) -> Self
pub const fn with_shutdown(self) -> Self
Returns self with Shutdown inserted.
Sourcepub const fn with_shutdown_if(self, condition: bool) -> Self
pub const fn with_shutdown_if(self, condition: bool) -> Self
Returns self with Shutdown inserted if condition is true.
Sourcepub const fn without_shutdown(self) -> Self
pub const fn without_shutdown(self) -> Self
Returns self with Shutdown removed.
Sourcepub const fn set_shutdown(&mut self)
pub const fn set_shutdown(&mut self)
Sets Shutdown.
Sourcepub const fn set_shutdown_if(&mut self, condition: bool)
pub const fn set_shutdown_if(&mut self, condition: bool)
Sets Shutdown if condition is true.
Sourcepub const fn unset_shutdown(&mut self)
pub const fn unset_shutdown(&mut self)
Unsets Shutdown.
Source§impl AppControlSet
Common set methods
impl AppControlSet
Common set methods
Source§impl AppControlSet
Set operations
impl AppControlSet
Set operations
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns true if self and other share any bit.
Sourcepub const fn is_subset(self, other: Self) -> bool
pub const fn is_subset(self, other: Self) -> bool
Returns true if all bits in self are also set in other.
Sourcepub const fn is_superset(self, other: Self) -> bool
pub const fn is_superset(self, other: Self) -> bool
Returns true if all bits in other are also set in self.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference of self and other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference of self and other.
Source§impl AppControlSet
Mutating set operations
impl AppControlSet
Mutating set operations
Trait Implementations§
Source§impl Binary for AppControlSet
Formats the set as a binary mask over its declared bit domain.
impl Binary for AppControlSet
Formats the set as a binary mask over its declared bit domain.
Source§impl BitAnd for AppControlSet
impl BitAnd for AppControlSet
Source§impl BitAndAssign for AppControlSet
impl BitAndAssign for AppControlSet
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSource§impl BitOr for AppControlSet
impl BitOr for AppControlSet
Source§impl BitOrAssign for AppControlSet
impl BitOrAssign for AppControlSet
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl BitSized<{ $Set::_SET_BIT_SIZE }> for AppControlSet
impl BitSized<{ $Set::_SET_BIT_SIZE }> for AppControlSet
Source§const BIT_SIZE: usize = _
const BIT_SIZE: usize = _
Source§const MIN_BYTE_SIZE: usize = _
const MIN_BYTE_SIZE: usize = _
Source§fn bit_size(&self) -> usize
fn bit_size(&self) -> usize
Source§fn min_byte_size(&self) -> usize
fn min_byte_size(&self) -> usize
Source§impl BitXor for AppControlSet
impl BitXor for AppControlSet
Source§impl BitXorAssign for AppControlSet
impl BitXorAssign for AppControlSet
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSource§impl Clone for AppControlSet
impl Clone for AppControlSet
Source§fn clone(&self) -> AppControlSet
fn clone(&self) -> AppControlSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ConstInit for AppControlSet
impl ConstInit for AppControlSet
impl Copy for AppControlSet
Source§impl Debug for AppControlSet
Formats the set as a prefixed binary mask over its declared bit domain.
impl Debug for AppControlSet
Formats the set as a prefixed binary mask over its declared bit domain.
Source§impl DebugExt for AppControlSetwhere
AppControlSet: Debug,
impl DebugExt for AppControlSetwhere
AppControlSet: Debug,
Source§impl Default for AppControlSet
impl Default for AppControlSet
Source§impl Display for AppControlSet
Formats the set as a prefixed binary mask over its declared bit domain.
impl Display for AppControlSet
Formats the set as a prefixed binary mask over its declared bit domain.
impl Eq for AppControlSet
Source§impl Hash for AppControlSet
impl Hash for AppControlSet
Source§impl LowerHex for AppControlSet
Formats the set as a hexadecimal mask over its declared bit domain.
impl LowerHex for AppControlSet
Formats the set as a hexadecimal mask over its declared bit domain.
Source§impl Not for AppControlSet
impl Not for AppControlSet
Source§impl Octal for AppControlSet
Formats the set as an octal mask over its declared bit domain.
impl Octal for AppControlSet
Formats the set as an octal mask over its declared bit domain.
Source§impl Ord for AppControlSet
impl Ord for AppControlSet
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for AppControlSet
impl PartialEq for AppControlSet
Source§impl PartialOrd for AppControlSet
impl PartialOrd for AppControlSet
Source§impl Sub for AppControlSet
impl Sub for AppControlSet
Source§impl SubAssign for AppControlSet
impl SubAssign for AppControlSet
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreAuto Trait Implementations§
impl Freeze for AppControlSet
impl RefUnwindSafe for AppControlSet
impl Send for AppControlSet
impl Sync for AppControlSet
impl Unpin for AppControlSet
impl UnsafeUnpin for AppControlSet
impl UnwindSafe for AppControlSet
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Source§fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Source§fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
alloc only.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
Source§impl<T> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Source§fn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Source§fn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Source§impl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Source§const NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Source§fn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Source§fn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Source§fn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Source§fn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Source§fn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSource§fn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSource§fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Source§unsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSource§unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSource§fn mem_as_bytes(&self) -> &[u8] ⓘ
fn mem_as_bytes(&self) -> &[u8] ⓘ
unsafe_slice only.