Struct component::Supervisor
source · [−]pub struct Supervisor<M: Manageable> { /* private fields */ }
Expand description
A Supervisor is instantiated to supervise a task that should always be running. A running supervisor will start a component task, and ensure that it is restarted if it ever stops.
Implementations
Auto Trait Implementations
impl<M> !RefUnwindSafe for Supervisor<M>
impl<M> Send for Supervisor<M> where
M: Send,
impl<M> Sync for Supervisor<M> where
M: Sync,
impl<M> Unpin for Supervisor<M> where
M: Unpin,
impl<M> !UnwindSafe for Supervisor<M>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more