pub struct DaemonNotifier { /* private fields */ }Expand description
Startup token held by the detached daemon until initialization finishes.
Implementations§
Source§impl DaemonNotifier
impl DaemonNotifier
Sourcepub const fn process(&self) -> DaemonProcess
pub const fn process(&self) -> DaemonProcess
Return this daemon’s process and group handles.
Sourcepub fn notify_ready(self) -> Result<()>
pub fn notify_ready(self) -> Result<()>
Report successful initialization to the original invoker.
§Errors
Returns the startup-pipe write error, normally EPIPE when the invoker
has already timed out or exited.
Sourcepub fn fail_and_exit(self, error: &Error) -> !
pub fn fail_and_exit(self, error: &Error) -> !
Report initialization failure and terminate the detached daemon.
The explicit name reflects that this method never returns and uses
_exit so inherited application destructors are not run.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DaemonNotifier
impl RefUnwindSafe for DaemonNotifier
impl Send for DaemonNotifier
impl Sync for DaemonNotifier
impl Unpin for DaemonNotifier
impl UnsafeUnpin for DaemonNotifier
impl UnwindSafe for DaemonNotifier
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