pub enum SupervisorStrategy {
OneForOne,
OneForAll,
RestForOne,
}Expand description
Restart strategy for supervised actors — mirrors Erlang/OTP.
OneForOne — restart only the crashed actor, leave siblings untouched.
OneForAll — if any supervised actor crashes, restart ALL of them.
RestForOne — restart the crashed actor and every actor registered after it.
Variants§
Trait Implementations§
Source§impl Clone for SupervisorStrategy
impl Clone for SupervisorStrategy
Source§fn clone(&self) -> SupervisorStrategy
fn clone(&self) -> SupervisorStrategy
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 SupervisorStrategy
impl Debug for SupervisorStrategy
Source§impl Default for SupervisorStrategy
impl Default for SupervisorStrategy
Source§fn default() -> SupervisorStrategy
fn default() -> SupervisorStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SupervisorStrategy
impl<'de> Deserialize<'de> for SupervisorStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SupervisorStrategy
impl PartialEq for SupervisorStrategy
Source§impl Serialize for SupervisorStrategy
impl Serialize for SupervisorStrategy
impl Eq for SupervisorStrategy
impl StructuralPartialEq for SupervisorStrategy
Auto Trait Implementations§
impl Freeze for SupervisorStrategy
impl RefUnwindSafe for SupervisorStrategy
impl Send for SupervisorStrategy
impl Sync for SupervisorStrategy
impl Unpin for SupervisorStrategy
impl UnwindSafe for SupervisorStrategy
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