Struct StandardStreamLock
struct StandardStreamLock<'a> { ... }
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.
Implementations
impl<'a> Debug for StandardStreamLock<'a>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl<'a> Freeze for StandardStreamLock<'a>
impl<'a> RefUnwindSafe for StandardStreamLock<'a>
impl<'a> Send for StandardStreamLock<'a>
impl<'a> Sync for StandardStreamLock<'a>
impl<'a> Unpin for StandardStreamLock<'a>
impl<'a> UnwindSafe for StandardStreamLock<'a>
impl<'a> Write for StandardStreamLock<'a>
fn write(self: &mut Self, b: &[u8]) -> io::Result<usize>fn flush(self: &mut Self) -> io::Result<()>
impl<'a> WriteColor for StandardStreamLock<'a>
fn supports_color(self: &Self) -> boolfn supports_hyperlinks(self: &Self) -> boolfn set_color(self: &mut Self, spec: &ColorSpec) -> io::Result<()>fn set_hyperlink(self: &mut Self, link: &HyperlinkSpec<'_>) -> io::Result<()>fn reset(self: &mut Self) -> io::Result<()>fn is_synchronous(self: &Self) -> bool
impl<T> Any for StandardStreamLock<'a>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for StandardStreamLock<'a>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for StandardStreamLock<'a>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for StandardStreamLock<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for StandardStreamLock<'a>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for StandardStreamLock<'a>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for StandardStreamLock<'a>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>