pub enum Writer<'a> {
File(BufWriter<File>),
Stdout(StdoutLock<'a>),
Stderr(StderrLock<'a>),
Local(BufWriter<Vec<u8>>),
}
Expand description
Implementation of a stream writer.
Variants§
File(BufWriter<File>)
A file writer
Stdout(StdoutLock<'a>)
A writer to stdout
Stderr(StderrLock<'a>)
A writer to stderr
Local(BufWriter<Vec<u8>>)
A writer to a local buffer
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Writer<'a>
impl<'a> RefUnwindSafe for Writer<'a>
impl<'a> !Send for Writer<'a>
impl<'a> !Sync for Writer<'a>
impl<'a> Unpin for Writer<'a>
impl<'a> UnwindSafe for Writer<'a>
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