pub struct DaemonStateAccessor { /* private fields */ }Implementations§
Source§impl DaemonStateAccessor
impl DaemonStateAccessor
pub fn open(path: Arc<Path>) -> Result<Self, IPCAtomicError>
Sourcepub fn read(&self) -> (DaemonWant, Option<i32>)
pub fn read(&self) -> (DaemonWant, Option<i32>)
The second result is the pid if set. A pid present does not imply that the daemon is up–have to also check flock.
pub fn want(&self) -> DaemonWant
pub fn want_starting(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DaemonStateAccessor
impl RefUnwindSafe for DaemonStateAccessor
impl Send for DaemonStateAccessor
impl Sync for DaemonStateAccessor
impl Unpin for DaemonStateAccessor
impl UnwindSafe for DaemonStateAccessor
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