pub struct Home { /* private fields */ }Expand description
The root of one seat’s pack.
Implementations§
Source§impl Home
impl Home
Sourcepub fn default_root() -> PathBuf
pub fn default_root() -> PathBuf
The default home, ~/.grokinside/memory.
Sourcepub fn workspace_dir(&self, workspace: &str) -> PathBuf
pub fn workspace_dir(&self, workspace: &str) -> PathBuf
One workspace’s directory.
Sourcepub fn memory_path(&self, workspace: &str) -> PathBuf
pub fn memory_path(&self, workspace: &str) -> PathBuf
One workspace’s card.
Sourcepub fn atoms_path(&self, workspace: &str) -> PathBuf
pub fn atoms_path(&self, workspace: &str) -> PathBuf
The append-only log, kept for readers that predate the database.
Sourcepub fn archive_path(&self, workspace: &str, day: &str) -> PathBuf
pub fn archive_path(&self, workspace: &str, day: &str) -> PathBuf
Where an overflowing card is archived, one file per day.
Sourcepub fn set_dir(&self, workspace: &str, name: &str) -> PathBuf
pub fn set_dir(&self, workspace: &str, name: &str) -> PathBuf
One set’s directory inside a workspace.
Sourcepub fn set_user_path(&self, workspace: &str, name: &str) -> PathBuf
pub fn set_user_path(&self, workspace: &str, name: &str) -> PathBuf
A set’s own card.
Sourcepub fn set_memory_path(&self, workspace: &str, name: &str) -> PathBuf
pub fn set_memory_path(&self, workspace: &str, name: &str) -> PathBuf
A set’s own workspace card.
Sourcepub fn set_instructions_path(&self, workspace: &str, name: &str) -> PathBuf
pub fn set_instructions_path(&self, workspace: &str, name: &str) -> PathBuf
A set’s standing instructions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Home
impl RefUnwindSafe for Home
impl Send for Home
impl Sync for Home
impl Unpin for Home
impl UnsafeUnpin for Home
impl UnwindSafe for Home
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