pub struct ExecutionResult(/* private fields */);Implementations§
Source§impl ExecutionResult
impl ExecutionResult
Sourcepub fn is_daemon(&self) -> bool
pub fn is_daemon(&self) -> bool
If need to know if in the daemon, e.g. to only conditionally return to main
Sourcepub fn daemon_cleanup(self) -> bool
pub fn daemon_cleanup(self) -> bool
Call this in the main function, after everything in the app
has been cleaned up. If this is in the daemon child, it will
re-exec the daemon binary if this was a restart
action. Otherwise exits, indicating whether this is a daemon
context (same as is_daemon).
Auto Trait Implementations§
impl Freeze for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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