pub struct ServicePaths { /* private fields */ }Expand description
The files of a home’s service.
Implementations§
Source§impl ServicePaths
impl ServicePaths
Sourcepub fn new(home: impl Into<PathBuf>) -> ServicePaths
pub fn new(home: impl Into<PathBuf>) -> ServicePaths
The service files of home.
Sourcepub fn lock(&self) -> PathBuf
pub fn lock(&self) -> PathBuf
The file the service holds an OS lock on while it runs: one service per home.
Sourcepub fn replace_lock(&self) -> PathBuf
pub fn replace_lock(&self) -> PathBuf
The file a client holds an OS lock on while it replaces the home’s service
(Client::connect_exact): two replace it in turn.
Sourcepub fn info(&self) -> PathBuf
pub fn info(&self) -> PathBuf
Where the running service says who and where it is (ServiceInfo).
Sourcepub fn read_info(&self) -> Option<ServiceInfo>
pub fn read_info(&self) -> Option<ServiceInfo>
The running service’s ServiceInfo, when service.json is there and reads as one (it
may be a dead service’s: connecting tells).
Trait Implementations§
Source§impl Clone for ServicePaths
impl Clone for ServicePaths
Source§impl Debug for ServicePaths
impl Debug for ServicePaths
impl Eq for ServicePaths
Source§impl PartialEq for ServicePaths
impl PartialEq for ServicePaths
impl StructuralPartialEq for ServicePaths
Auto Trait Implementations§
impl Forget for ServicePaths
impl Freeze for ServicePaths
impl Move for ServicePaths
impl RefUnwindSafe for ServicePaths
impl Send for ServicePathswhere
RawVecInner: Send,
impl Sync for ServicePathswhere
RawVecInner: Sync,
impl Unpin for ServicePaths
impl UnsafeUnpin for ServicePaths
impl UnwindSafe for ServicePathswhere
RawVecInner: UnwindSafe,
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
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.