pub struct SessionReader;Expand description
JSONL reader with crash recovery.
Implementations§
Source§impl SessionReader
impl SessionReader
Sourcepub fn read_all(path: &Path) -> Result<(SessionHeader, Vec<SessionEntry>)>
pub fn read_all(path: &Path) -> Result<(SessionHeader, Vec<SessionEntry>)>
Read all entries from a session file (strict mode — errors on corrupt data).
Sourcepub fn read_with_recovery(
path: &Path,
) -> Result<(SessionHeader, Vec<SessionEntry>, CrashRecovery)>
pub fn read_with_recovery( path: &Path, ) -> Result<(SessionHeader, Vec<SessionEntry>, CrashRecovery)>
Read all entries with crash recovery metadata.
Auto Trait Implementations§
impl Freeze for SessionReader
impl RefUnwindSafe for SessionReader
impl Send for SessionReader
impl Sync for SessionReader
impl Unpin for SessionReader
impl UnsafeUnpin for SessionReader
impl UnwindSafe for SessionReader
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