pub struct VtSignals { /* private fields */ }Expand description
Enum containing all the signals supported by the virtual terminal.
Use Vt::signals to manage the signals enabled in a virtual terminal.
Implementations§
Source§impl VtSignals
impl VtSignals
pub const SIGINT: VtSignals
pub const SIGQUIT: VtSignals
pub const SIGTSTP: VtSignals
Sourcepub fn from_bits(bits: u8) -> Option<VtSignals>
pub fn from_bits(bits: u8) -> Option<VtSignals>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u8) -> VtSignals
pub const fn from_bits_truncate(bits: u8) -> VtSignals
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const fn intersects(&self, other: VtSignals) -> bool
pub const fn intersects(&self, other: VtSignals) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for VtSignals
impl BitAndAssign for VtSignals
Source§fn bitand_assign(&mut self, other: VtSignals)
fn bitand_assign(&mut self, other: VtSignals)
Disables all flags disabled in the set.
Source§impl BitOrAssign for VtSignals
impl BitOrAssign for VtSignals
Source§fn bitor_assign(&mut self, other: VtSignals)
fn bitor_assign(&mut self, other: VtSignals)
Adds the set of flags.
Source§impl BitXorAssign for VtSignals
impl BitXorAssign for VtSignals
Source§fn bitxor_assign(&mut self, other: VtSignals)
fn bitxor_assign(&mut self, other: VtSignals)
Toggles the set of flags.
Source§impl Extend<VtSignals> for VtSignals
impl Extend<VtSignals> for VtSignals
Source§fn extend<T: IntoIterator<Item = VtSignals>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = VtSignals>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<VtSignals> for VtSignals
impl FromIterator<VtSignals> for VtSignals
Source§impl Ord for VtSignals
impl Ord for VtSignals
Source§impl PartialOrd for VtSignals
impl PartialOrd for VtSignals
Source§impl SubAssign for VtSignals
impl SubAssign for VtSignals
Source§fn sub_assign(&mut self, other: VtSignals)
fn sub_assign(&mut self, other: VtSignals)
Disables all flags enabled in the set.
impl Copy for VtSignals
impl Eq for VtSignals
impl StructuralPartialEq for VtSignals
Auto Trait Implementations§
impl Freeze for VtSignals
impl RefUnwindSafe for VtSignals
impl Send for VtSignals
impl Sync for VtSignals
impl Unpin for VtSignals
impl UnwindSafe for VtSignals
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