pub struct JsonlWriter { /* private fields */ }Implementations§
Source§impl JsonlWriter
impl JsonlWriter
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn append(&mut self, event: &Event) -> Result<()>
Sourcepub fn flush_durable(&mut self) -> Result<()>
pub fn flush_durable(&mut self) -> Result<()>
Flush user buffers to OS, then fsync the underlying file so the bytes survive a crash. Call after every batch of appends that must be durable.
pub fn path(&self) -> &Path
Auto Trait Implementations§
impl Freeze for JsonlWriter
impl RefUnwindSafe for JsonlWriter
impl Send for JsonlWriter
impl Sync for JsonlWriter
impl Unpin for JsonlWriter
impl UnsafeUnpin for JsonlWriter
impl UnwindSafe for JsonlWriter
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