pub struct MemoryPathResolver { /* private fields */ }Implementations§
Source§impl MemoryPathResolver
impl MemoryPathResolver
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn from_data_dir(data_dir: impl Into<PathBuf>) -> Self
pub fn data_dir(&self) -> PathBuf
pub fn root(&self) -> PathBuf
pub fn sessions_root(&self) -> PathBuf
pub fn session_root(&self, session_id: &str) -> PathBuf
pub fn session_note_dir(&self, session_id: &str) -> PathBuf
pub fn session_topic_path(&self, session_id: &str, topic: &str) -> PathBuf
pub fn session_state_path(&self, session_id: &str) -> PathBuf
pub fn scopes_root(&self) -> PathBuf
pub fn global_root(&self) -> PathBuf
pub fn project_root(&self, project_key: &str) -> PathBuf
pub fn scope_root( &self, scope: MemoryScope, project_key: Option<&str>, ) -> PathBuf
pub fn topic_dir( &self, scope: MemoryScope, project_key: Option<&str>, ) -> PathBuf
pub fn topic_path( &self, scope: MemoryScope, project_key: Option<&str>, memory_id: &str, ) -> PathBuf
pub fn indexes_dir( &self, scope: MemoryScope, project_key: Option<&str>, ) -> PathBuf
pub fn views_dir( &self, scope: MemoryScope, project_key: Option<&str>, ) -> PathBuf
pub fn logs_dir(&self, scope: MemoryScope, project_key: Option<&str>) -> PathBuf
pub fn state_dir( &self, scope: MemoryScope, project_key: Option<&str>, ) -> PathBuf
pub fn locks_dir( &self, scope: MemoryScope, project_key: Option<&str>, ) -> PathBuf
pub fn legacy_notes_root(&self) -> PathBuf
pub fn legacy_session_file(&self, session_id: &str) -> PathBuf
pub fn legacy_session_topic_dir(&self, session_id: &str) -> PathBuf
Trait Implementations§
Source§impl Clone for MemoryPathResolver
impl Clone for MemoryPathResolver
Source§fn clone(&self) -> MemoryPathResolver
fn clone(&self) -> MemoryPathResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryPathResolver
impl Debug for MemoryPathResolver
Auto Trait Implementations§
impl Freeze for MemoryPathResolver
impl RefUnwindSafe for MemoryPathResolver
impl Send for MemoryPathResolver
impl Sync for MemoryPathResolver
impl Unpin for MemoryPathResolver
impl UnsafeUnpin for MemoryPathResolver
impl UnwindSafe for MemoryPathResolver
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