pub struct SessionStore {
pub base_dir: PathBuf,
}Fields§
§base_dir: PathBufImplementations§
Source§impl SessionStore
impl SessionStore
pub fn new() -> Result<Self>
Sourcepub fn at(base_dir: PathBuf) -> Self
pub fn at(base_dir: PathBuf) -> Self
Construct a store rooted at an explicit projects directory. Used by
integration tests so they don’t have to mutate $HOME.
pub fn project_dirs(&self) -> Result<Vec<(String, PathBuf)>>
pub fn session_files(&self, project_path: &Path) -> Result<Vec<PathBuf>>
pub fn all_session_files( &self, project_filter: Option<&str>, ) -> Result<Vec<(String, PathBuf)>>
Auto 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