pub struct Sink {
pub rotations: u32,
/* private fields */
}Expand description
The file, kept under a size: once the next line would pass it, the file
becomes <file>.1 (replacing an older one) and a new file starts.
Writes are buffered. A line reaches the file when the buffer fills, on
flush (the capture flushes every FLUSH_EVERY and when it ends) and
before a rotation. The buffer only ever holds whole lines, so a killed
process loses at most the last few, never half of one.
Fields§
§rotations: u32Implementations§
Auto Trait Implementations§
impl Forget for Sink
impl Freeze for Sink
impl Move for Sink
impl RefUnwindSafe for Sink
impl Send for Sink
impl Sync for Sink
impl Unpin for Sink
impl UnsafeUnpin for Sink
impl UnwindSafe for Sink
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