pub enum AppControl {
Interrupt,
Quit,
Terminate,
Hangup,
Suspend,
Resume,
Close,
Logout,
Shutdown,
}Expand description
⬡ 🎫 External control notice directed at an application.
📦 size_of::<AppControl>() == 1 bytes / 8 bits
⚗️Option<T> 🟰 T
Variants§
Interrupt
User requested interruption, usually Ctrl+C.
Quit
User requested a stronger quit, usually Ctrl+\ on Unix terminals.
Terminate
Polite termination request from the environment.
Hangup
Session, terminal, or controlling process disappeared.
Suspend
Application/session was asked to suspend.
Resume
Application/session resumed after suspension.
Close
Application/session is being closed.
Logout
User session is logging out.
Shutdown
System is shutting down.
Implementations§
Source§impl AppControl
impl AppControl
Sourcepub const fn to_linux_signal(self) -> Option<LinuxSignal> ⓘ
pub const fn to_linux_signal(self) -> Option<LinuxSignal> ⓘ
Returns the Linux signal normally used to deliver this control notice.
Source§impl AppControl
§Variant-set methods
impl AppControl
§Variant-set methods
Sourcepub const VARIANTS: usize = _AppControl_private::VARIANTS
pub const VARIANTS: usize = _AppControl_private::VARIANTS
The total number of declared variants.
Sourcepub const fn empty_set() -> AppControlSet
pub const fn empty_set() -> AppControlSet
Returns the associated empty set.
Sourcepub const fn full_set() -> AppControlSet
pub const fn full_set() -> AppControlSet
Returns the associated full set.
Sourcepub const fn to_set(&self) -> AppControlSet
pub const fn to_set(&self) -> AppControlSet
Returns the singleton set for this variant.
Sourcepub const fn is_in(&self, set: AppControlSet) -> bool
pub const fn is_in(&self, set: AppControlSet) -> bool
Returns whether this variant belongs to set.
Trait Implementations§
Source§impl Clone for AppControl
impl Clone for AppControl
Source§fn clone(&self) -> AppControl
fn clone(&self) -> AppControl
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AppControl
Source§impl Debug for AppControl
impl Debug for AppControl
impl Eq for AppControl
Source§impl From<&AppControl> for AppControlSet
impl From<&AppControl> for AppControlSet
Source§fn from(value: &AppControl) -> Self
fn from(value: &AppControl) -> Self
Converts an enum value into its singleton variant set.
Source§impl From<AppControl> for AppControlSet
impl From<AppControl> for AppControlSet
Source§fn from(value: AppControl) -> Self
fn from(value: AppControl) -> Self
Converts an enum value into its singleton variant set.
Source§impl Hash for AppControl
impl Hash for AppControl
Source§impl PartialEq for AppControl
impl PartialEq for AppControl
impl StructuralPartialEq for AppControl
Auto Trait Implementations§
impl Freeze for AppControl
impl RefUnwindSafe for AppControl
impl Send for AppControl
impl Sync for AppControl
impl Unpin for AppControl
impl UnsafeUnpin for AppControl
impl UnwindSafe for AppControl
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.