pub enum RestartStrategy {
OneForOne,
OneForAll,
RestForOne,
}Expand description
Which siblings die (and later come back) when one child exits.
Sibling abort is cooperative: parked children are taken out of the
mailbox immediately; a child mid-quantum dies at the next budget edge
(same contract as super::runtime::Runtime::kill).
Variants§
OneForOne
Only the child that exited is considered for restart.
OneForAll
Every sibling is shut down, then the whole set is started again in original start order.
RestForOne
Children started after the failed one are shut down, then that suffix (failed + later) is started again in start order.
Trait Implementations§
Source§impl Clone for RestartStrategy
impl Clone for RestartStrategy
Source§fn clone(&self) -> RestartStrategy
fn clone(&self) -> RestartStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RestartStrategy
Source§impl Debug for RestartStrategy
impl Debug for RestartStrategy
impl Eq for RestartStrategy
Source§impl PartialEq for RestartStrategy
impl PartialEq for RestartStrategy
impl StructuralPartialEq for RestartStrategy
Auto Trait Implementations§
impl Freeze for RestartStrategy
impl RefUnwindSafe for RestartStrategy
impl Send for RestartStrategy
impl Sync for RestartStrategy
impl Unpin for RestartStrategy
impl UnsafeUnpin for RestartStrategy
impl UnwindSafe for RestartStrategy
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.