pub struct DefaultSessionRepo;Expand description
Default session repo backed by JSONL files.
Implementations§
Trait Implementations§
Source§impl Default for DefaultSessionRepo
impl Default for DefaultSessionRepo
Source§impl SessionRepo for DefaultSessionRepo
impl SessionRepo for DefaultSessionRepo
Source§fn list(
&self,
session_dir: &Path,
filter_cwd: Option<&Path>,
progress: Option<&dyn Fn(usize, usize)>,
) -> Vec<SessionInfo>
fn list( &self, session_dir: &Path, filter_cwd: Option<&Path>, progress: Option<&dyn Fn(usize, usize)>, ) -> Vec<SessionInfo>
List sessions in a directory, optionally filtered by cwd.
progress receives (loaded_count, total_count) for UI updates.Source§fn list_all(&self, progress: Option<&dyn Fn(usize, usize)>) -> Vec<SessionInfo>
fn list_all(&self, progress: Option<&dyn Fn(usize, usize)>) -> Vec<SessionInfo>
List sessions across all project directories under
~/.rab/sessions/.Auto Trait Implementations§
impl Freeze for DefaultSessionRepo
impl RefUnwindSafe for DefaultSessionRepo
impl Send for DefaultSessionRepo
impl Sync for DefaultSessionRepo
impl Unpin for DefaultSessionRepo
impl UnsafeUnpin for DefaultSessionRepo
impl UnwindSafe for DefaultSessionRepo
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