Struct std::io::Stderr 1.0.0
[−]
[src]
A handle to the standard error stream of a process.
For more information, see the io::stderr
method.
Methods
impl Stderr
[src]
[−]
impl Stderr
ⓘImportant traits for StderrLock<'a>pub fn lock(&self) -> StderrLock
[src]
[−]
ⓘImportant traits for StderrLock<'a>
pub fn lock(&self) -> StderrLock
Locks this handle to the standard error stream, returning a writable guard.
The lock is released when the returned lock goes out of scope. The
returned guard also implements the Write
trait for writing data.
Examples
use std::io::{self, Write}; fn foo() -> io::Result<()> { let stderr = io::stderr(); let mut handle = stderr.lock(); handle.write(b"hello world")?; Ok(()) }Run
Trait Implementations
impl Debug for Stderr
1.16.0[src]
[+]
impl Debug for Stderr
1.16.0
[src]impl Write for Stderr
[src]
[+]
impl Write for Stderr
impl AsRawFd for Stderr
1.21.0[src]
[+]
impl AsRawFd for Stderr
1.21.0
[src]impl AsRawHandle for Stderr
1.21.0[src]
[+]
impl AsRawHandle for Stderr
1.21.0
[src]