pub struct ExitStatus {
pub reason: ExitReason,
}Expand description
The final status returned by Service::start.
Fields§
§reason: ExitReasonWhy the service exited.
Implementations§
Source§impl ExitStatus
impl ExitStatus
Sourcepub fn is_graceful(&self) -> bool
pub fn is_graceful(&self) -> bool
Whether this exit was graceful (i.e., not RunError and not Fatal).
Binaries can use this to decide on exit code 0 vs 1.
Trait Implementations§
Source§impl Clone for ExitStatus
impl Clone for ExitStatus
Source§fn clone(&self) -> ExitStatus
fn clone(&self) -> ExitStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExitStatus
impl RefUnwindSafe for ExitStatus
impl Send for ExitStatus
impl Sync for ExitStatus
impl Unpin for ExitStatus
impl UnsafeUnpin for ExitStatus
impl UnwindSafe for ExitStatus
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