pub struct SessionDir { /* private fields */ }Implementations§
Source§impl SessionDir
impl SessionDir
pub fn create(repo: &Path, session_id: &str) -> Result<SessionDir, StoreError>
pub fn open(repo: &Path, session_id: &str) -> Result<SessionDir, StoreError>
pub fn latest(repo: &Path) -> Result<Option<String>, StoreError>
pub fn path(&self) -> &Path
pub fn lock(&self) -> Result<Lock, LockError>
pub fn raw_log_path(&self, seq: u64) -> PathBuf
Sourcepub fn next_raw_log_seq(&self) -> u64
pub fn next_raw_log_seq(&self) -> u64
Scans raw-*.log files in the session directory and returns the next sequence number.
pub fn append(&self, record: &TranscriptRecord) -> Result<(), StoreError>
pub fn read_transcript(&self) -> Result<Vec<TranscriptRecord>, StoreError>
Trait Implementations§
Source§impl Clone for SessionDir
impl Clone for SessionDir
Source§impl Debug for SessionDir
impl Debug for SessionDir
impl Eq for SessionDir
Source§impl PartialEq for SessionDir
impl PartialEq for SessionDir
impl StructuralPartialEq for SessionDir
Auto Trait Implementations§
impl Forget for SessionDir
impl Freeze for SessionDir
impl Move for SessionDir
impl RefUnwindSafe for SessionDir
impl Send for SessionDirwhere
RawVecInner: Send,
impl Sync for SessionDirwhere
RawVecInner: Sync,
impl Unpin for SessionDir
impl UnsafeUnpin for SessionDir
impl UnwindSafe for SessionDirwhere
RawVecInner: 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