pub struct SessionStore { /* private fields */ }Implementations§
Source§impl SessionStore
impl SessionStore
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn root(&self) -> &Path
pub fn ensure_root(&self) -> Result<()>
pub fn resolve_session( &self, requested: Option<&str>, create_if_missing: bool, ) -> Result<PathBuf>
pub fn create_session(&self) -> Result<PathBuf>
pub fn latest_session(&self) -> Result<Option<PathBuf>>
pub fn next_step(&self, session_dir: &Path) -> Result<u32>
pub fn frame_dir(&self, session_dir: &Path, step: u32) -> Result<PathBuf>
pub fn write_manifest_if_missing(&self, session_dir: &Path) -> Result<()>
pub fn append_event( &self, session_dir: &Path, line: impl AsRef<str>, ) -> Result<()>
pub fn write_action_files( &self, session_dir: &Path, step: u32, request: &str, parsed: &str, result: &str, ) -> Result<()>
Trait Implementations§
Source§impl Clone for SessionStore
impl Clone for SessionStore
Source§fn clone(&self) -> SessionStore
fn clone(&self) -> SessionStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SessionStore
impl RefUnwindSafe for SessionStore
impl Send for SessionStore
impl Sync for SessionStore
impl Unpin for SessionStore
impl UnsafeUnpin for SessionStore
impl UnwindSafe for SessionStore
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