Struct StandardStreamLock

pub struct StandardStreamLock<'a> { /* private fields */ }

StandardStreamLock is a locked reference to a StandardStream.

This implements the io::Write and WriteColor traits, and is constructed via the Write::lock method.

The lifetime 'a refers to the lifetime of the corresponding StandardStream.

Trait Implementations

impl<'a> Debug for StandardStreamLock<'a>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'a> Write for StandardStreamLock<'a>

fn write(&mut self, b: &[u8]) -> Result<usize>
fn flush(&mut self) -> Result<()>

impl<'a> WriteColor for StandardStreamLock<'a>

fn supports_color(&self) -> bool
fn set_color(&mut self, spec: &ColorSpec) -> Result<()>
fn reset(&mut self) -> Result<()>
fn is_synchronous(&self) -> bool

Auto Trait Implementations

impl<'a> !Send for StandardStreamLock<'a>

impl<'a> !Sync for StandardStreamLock<'a>

impl<'a> Freeze for StandardStreamLock<'a>

impl<'a> RefUnwindSafe for StandardStreamLock<'a>

impl<'a> Unpin for StandardStreamLock<'a>

impl<'a> UnsafeUnpin for StandardStreamLock<'a>

impl<'a> UnwindSafe for StandardStreamLock<'a>

Blanket Implementations

impl<T> Any for StandardStreamLock<'a> where T: 'static + ?Sized,

impl<T> Borrow<T> for StandardStreamLock<'a> where T: ?Sized,

impl<T> BorrowMut<T> for StandardStreamLock<'a> where T: ?Sized,

impl<T> From<T> for StandardStreamLock<'a>

impl<T, U> Into<U> for StandardStreamLock<'a> where U: From<T>,

impl<T, U> TryFrom<U> for StandardStreamLock<'a> where U: Into<T>,

impl<T, U> TryInto<U> for StandardStreamLock<'a> where U: TryFrom<T>,