pub struct Ledger<E> { /* private fields */ }Expand description
Append-only JSONL ledger with per-day file rotation.
Generic over the event type E. For multi-writer scenarios,
wrap in Arc<Mutex<Ledger<E>>> — the file-level flock is
handled by the OS when opening for append.
Implementations§
Auto Trait Implementations§
impl<E> Freeze for Ledger<E>
impl<E> RefUnwindSafe for Ledger<E>where
E: RefUnwindSafe,
impl<E> Send for Ledger<E>where
E: Send,
impl<E> Sync for Ledger<E>where
E: Sync,
impl<E> Unpin for Ledger<E>where
E: Unpin,
impl<E> UnsafeUnpin for Ledger<E>
impl<E> UnwindSafe for Ledger<E>where
E: 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