pub struct Paths {
pub root: PathBuf,
}Expand description
Daemon-side filesystem layout, from the CLI’s perspective.
Fields§
§root: PathBufImplementations§
Source§impl Paths
impl Paths
pub fn at(root: impl Into<PathBuf>) -> Self
Sourcepub fn home() -> Self
pub fn home() -> Self
Conventional location: $HOME/.vibesurfer. Falls back to . if
$HOME is unset.
pub fn socket(&self) -> PathBuf
pub fn active_session(&self) -> PathBuf
Sourcepub fn caller_session(&self, caller_key: &str) -> PathBuf
pub fn caller_session(&self, caller_key: &str) -> PathBuf
Where the session id is stored for a given caller key. The
directory is created lazily on first write so a read-only
vs status doesn’t side-effect.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Paths
impl RefUnwindSafe for Paths
impl Send for Paths
impl Sync for Paths
impl Unpin for Paths
impl UnsafeUnpin for Paths
impl UnwindSafe for Paths
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