pub struct FileSessionLog { /* private fields */ }Expand description
Single-writer per session. Not safe for concurrent writers across processes.
Implementations§
Trait Implementations§
Source§impl SessionLog for FileSessionLog
impl SessionLog for FileSessionLog
fn append<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
event: SessionEvent,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
from_seq: u64,
primitive_filter: Option<Primitive>,
) -> Pin<Box<dyn Future<Output = Result<Vec<SessionEntry>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn latest_seq<'life0, 'life1, 'async_trait>(
&'life0 self,
session_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<i64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for FileSessionLog
impl !RefUnwindSafe for FileSessionLog
impl !UnwindSafe for FileSessionLog
impl Send for FileSessionLog
impl Sync for FileSessionLog
impl Unpin for FileSessionLog
impl UnsafeUnpin for FileSessionLog
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