pub struct Paths { /* private fields */ }Implementations§
Source§impl Paths
impl Paths
pub fn new(state_dir: impl Into<PathBuf>) -> Self
pub fn state_dir(&self) -> &Path
pub fn db_path(&self) -> PathBuf
pub fn socket_path(&self) -> PathBuf
pub fn daemon_log(&self) -> PathBuf
pub fn spawn_lock(&self) -> PathBuf
pub fn logs_dir(&self, instance: &str) -> PathBuf
Sourcepub fn persistence_marker(&self) -> PathBuf
pub fn persistence_marker(&self) -> PathBuf
Launchd registration outcome file under the state dir.
Trait Implementations§
impl Eq for Paths
impl StructuralPartialEq for Paths
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.