Struct rustfmt_nightly::io::StderrLock 1.0.0[−][src]
pub struct StderrLock<'a> {
inner: ReentrantMutexGuard<'a, RefCell<StderrRaw>>,
}Expand description
A locked reference to the Stderr handle.
This handle implements the Write trait and is constructed via
the Stderr::lock method. See its documentation for more.
Note: Windows Portability Consideration
When operating in a console, the Windows implementation of this stream does not support non-UTF-8 byte sequences. Attempting to write bytes that are not valid UTF-8 will return an error.
Fields
inner: ReentrantMutexGuard<'a, RefCell<StderrRaw>>Trait Implementations
Write a buffer into this writer, returning how many bytes were written. Read more
can_vector)Determines if this Writer has an efficient write_vectored
implementation. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for StderrLock<'a>
impl<'a> !Send for StderrLock<'a>
impl<'a> Sync for StderrLock<'a>
impl<'a> Unpin for StderrLock<'a>
impl<'a> UnwindSafe for StderrLock<'a>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes