pub struct Paths {
pub root: PathBuf,
}Expand description
Daemon-side filesystem layout.
Fields§
§root: PathBufRoot directory; usually $HOME/.vibesurfer.
Implementations§
Source§impl Paths
impl Paths
Sourcepub fn at(root: impl Into<PathBuf>) -> Self
pub fn at(root: impl Into<PathBuf>) -> Self
Construct from a custom root (tests use a temp dir).
Sourcepub fn home() -> Self
pub fn home() -> Self
Conventional location: $HOME/.vibesurfer. Falls back to the
current directory if $HOME is unset (rare; CI containers).
pub fn socket(&self) -> PathBuf
Sourcepub fn pid_file(&self) -> PathBuf
pub fn pid_file(&self) -> PathBuf
PID file for the running daemon. Written by vs serve on startup
and removed on graceful shutdown. vs serve --stop reads it.
pub fn db(&self) -> PathBuf
pub fn active_session(&self) -> PathBuf
pub fn key_file(&self) -> PathBuf
Sourcepub fn captures(&self) -> PathBuf
pub fn captures(&self) -> PathBuf
Where the daemon writes screenshot PNGs from vs_capture.
Defaults to <root>/captures. Overridable per-process via the
VS_CAPTURES_DIR environment variable.
Sourcepub fn ensure_root(&self) -> Result<()>
pub fn ensure_root(&self) -> Result<()>
Ensure the root directory exists.
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