pub struct Streamer<W: Write, F: Format> { /* private fields */ }
Expand description
Drain formating records and writing them to a byte-stream (io::Write
)
Uses mutex to serialize writes to io
. Use AsyncStreamer
for better
performance, but without guarantee of immediate output.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<W, F> !Freeze for Streamer<W, F>
impl<W, F> RefUnwindSafe for Streamer<W, F>where
F: RefUnwindSafe,
impl<W, F> Send for Streamer<W, F>where
W: Send,
impl<W, F> Sync for Streamer<W, F>where
W: Send,
impl<W, F> Unpin for Streamer<W, F>
impl<W, F> UnwindSafe for Streamer<W, F>where
F: UnwindSafe,
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