pub enum Interactivity {
Interactive,
NonInteractive,
}Expand description
Primitive stream interactivity state.
Variants§
Interactive
The stream appears to be attached to a terminal.
NonInteractive
The stream does not appear to be attached to a terminal.
Implementations§
Source§impl Interactivity
impl Interactivity
Sourcepub const fn from_bool(is_terminal: bool) -> Interactivity
pub const fn from_bool(is_terminal: bool) -> Interactivity
Converts a boolean terminal result into an interactivity value.
Sourcepub const fn is_interactive(self) -> bool
pub const fn is_interactive(self) -> bool
Returns whether the stream is interactive.
Trait Implementations§
Source§impl Clone for Interactivity
impl Clone for Interactivity
Source§fn clone(&self) -> Interactivity
fn clone(&self) -> Interactivity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Interactivity
impl Debug for Interactivity
Source§impl Hash for Interactivity
impl Hash for Interactivity
Source§impl PartialEq for Interactivity
impl PartialEq for Interactivity
Source§fn eq(&self, other: &Interactivity) -> bool
fn eq(&self, other: &Interactivity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Interactivity
impl Eq for Interactivity
impl StructuralPartialEq for Interactivity
Auto Trait Implementations§
impl Freeze for Interactivity
impl RefUnwindSafe for Interactivity
impl Send for Interactivity
impl Sync for Interactivity
impl Unpin for Interactivity
impl UnsafeUnpin for Interactivity
impl UnwindSafe for Interactivity
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