Enum Interactivity
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§
§impl Interactivity
impl Interactivity
pub 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.
pub const fn is_interactive(self) -> bool
pub const fn is_interactive(self) -> bool
Returns whether the stream is interactive.
Trait Implementations§
§impl Clone for Interactivity
impl Clone for Interactivity
§fn clone(&self) -> Interactivity
fn clone(&self) -> Interactivity
Returns a duplicate 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 Interactivity
impl Debug for Interactivity
§impl Hash for Interactivity
impl Hash for Interactivity
§impl PartialEq for Interactivity
impl PartialEq for Interactivity
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