pub struct RunSummary { /* private fields */ }Expand description
Final supervisor result once Supervisor::run finishes.
Implementations§
Source§impl RunSummary
impl RunSummary
Sourcepub fn new(
shutdown_cause: ShutdownCause,
readiness: SupervisorReadiness,
services: Vec<ServiceSummary>,
) -> Self
pub fn new( shutdown_cause: ShutdownCause, readiness: SupervisorReadiness, services: Vec<ServiceSummary>, ) -> Self
Creates a final run summary. Most callers should receive this from
Supervisor::run rather than constructing it directly.
pub fn shutdown_cause(&self) -> &ShutdownCause
pub fn readiness(&self) -> SupervisorReadiness
pub fn services(&self) -> &[ServiceSummary]
pub fn service(&self, name: &str) -> Option<&ServiceSummary>
Trait Implementations§
Source§impl Clone for RunSummary
impl Clone for RunSummary
Source§fn clone(&self) -> RunSummary
fn clone(&self) -> RunSummary
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 moreSource§impl Debug for RunSummary
impl Debug for RunSummary
Source§impl PartialEq for RunSummary
impl PartialEq for RunSummary
impl Eq for RunSummary
impl StructuralPartialEq for RunSummary
Auto Trait Implementations§
impl Freeze for RunSummary
impl RefUnwindSafe for RunSummary
impl Send for RunSummary
impl Sync for RunSummary
impl Unpin for RunSummary
impl UnsafeUnpin for RunSummary
impl UnwindSafe for RunSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSupervisorState<S> for Swhere
S: Clone,
impl<S> FromSupervisorState<S> for Swhere
S: Clone,
Source§fn from_state(state: &S) -> S
fn from_state(state: &S) -> S
Projects
Self out of the root supervisor state.