pub struct FileSubscriber { /* private fields */ }Expand description
Appends each event as a single JSON line (JSONL) to a file. Each call opens the file in append mode, writes, and closes it — this is intentionally simple and robust (no background thread needed).
Implementations§
Trait Implementations§
Source§impl EventSubscriber for FileSubscriber
impl EventSubscriber for FileSubscriber
Auto Trait Implementations§
impl Freeze for FileSubscriber
impl RefUnwindSafe for FileSubscriber
impl Send for FileSubscriber
impl Sync for FileSubscriber
impl Unpin for FileSubscriber
impl UnsafeUnpin for FileSubscriber
impl UnwindSafe for FileSubscriber
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