pub struct FileJournal { /* private fields */ }Expand description
File-backed journal writing newline-delimited JSON entries.
Implementations§
Source§impl FileJournal
impl FileJournal
Trait Implementations§
Source§impl Journal for FileJournal
impl Journal for FileJournal
Source§fn append<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 MemoryRecord,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn append<'life0, 'life1, 'async_trait>(
&'life0 self,
record: &'life1 MemoryRecord,
) -> Pin<Box<dyn Future<Output = MemoryResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Appends a record to the journal.
Auto Trait Implementations§
impl !Freeze for FileJournal
impl !RefUnwindSafe for FileJournal
impl Send for FileJournal
impl Sync for FileJournal
impl Unpin for FileJournal
impl UnwindSafe for FileJournal
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