pub struct FileSink<F: Format> { /* private fields */ }Available on crate feature
std only.Expand description
Buffered file sink.
Wraps a std::fs::File in a BufWriter under a mutex.
Sink::flush flushes the buffer through to the OS; it does not
fsync the underlying file. Use the file directly if a stricter
guarantee is needed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<F> !Freeze for FileSink<F>
impl<F> RefUnwindSafe for FileSink<F>where
F: RefUnwindSafe,
impl<F> Send for FileSink<F>
impl<F> Sync for FileSink<F>
impl<F> Unpin for FileSink<F>where
F: Unpin,
impl<F> UnsafeUnpin for FileSink<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for FileSink<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