pub struct DaemonClient { /* private fields */ }Expand description
Client for the daemon — connects to the Unix socket.
Implementations§
Trait Implementations§
Source§impl Dispenser for DaemonClient
Available on Unix only.
impl Dispenser for DaemonClient
Available on Unix only.
Source§fn next(&self, object_type: &str) -> Result<u32>
fn next(&self, object_type: &str) -> Result<u32>
Get the next sequence number for the given object type.
Increments the counter atomically.
Source§fn peek(&self, object_type: &str) -> Result<u32>
fn peek(&self, object_type: &str) -> Result<u32>
Peek at the next sequence number without incrementing.
Source§fn state(&self) -> Result<DispenserState>
fn state(&self) -> Result<DispenserState>
Get the full current state (all counters).
Auto Trait Implementations§
impl Freeze for DaemonClient
impl RefUnwindSafe for DaemonClient
impl Send for DaemonClient
impl Sync for DaemonClient
impl Unpin for DaemonClient
impl UnsafeUnpin for DaemonClient
impl UnwindSafe for DaemonClient
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