pub struct NodeFault {
pub node: &'static TaskNode,
pub kind: FaultKind,
}Expand description
A node-scoped lifecycle failure: which node, and what went wrong.
Every way bring-up or teardown can fail is about one node, so one type says
so — the same { node, kind } shape as HealthEvent.
It is what Supervisor::start, Supervisor::teardown,
Supervisor::run and Supervisor::restart all return.
Display is unconditional, so an application logging
through anything other than defmt can render one without matching on
FaultKind.
Fields§
§node: &'static TaskNodeThe node the failure is about.
kind: FaultKindWhat went wrong.
Trait Implementations§
impl Copy for NodeFault
Auto Trait Implementations§
impl !RefUnwindSafe for NodeFault
impl !UnwindSafe for NodeFault
impl Freeze for NodeFault
impl Send for NodeFault
impl Sync for NodeFault
impl Unpin for NodeFault
impl UnsafeUnpin for NodeFault
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