[][src]Enum bastion::supervisor::SupervisionStrategy

pub enum SupervisionStrategy {
    OneForOne,
    OneForAll,
    RestForOne,
}

Possible supervision strategies to pass to the supervisor.

OneForOne: If a child gets killed only that child will be restarted under the supervisor.

OneForAll: If a child gets killed all children at the same level under the supervision will be restarted.

RestForOne: If a child gets killed restart the rest of the children at the same level under the supervisor.

Variants

OneForOne

If a child gets killed only that child will be restarted under the supervisor.

Example is from learnyousomeerlang.com:

OneForAll

If a child gets killed all children at the same level under the supervision will be restarted.

Example is from learnyousomeerlang.com:

RestForOne

If a child gets killed restart the rest of the children at the same level under the supervisor.

Example is from learnyousomeerlang.com:

Trait Implementations

impl Default for SupervisionStrategy[src]

impl Clone for SupervisionStrategy[src]

impl Debug for SupervisionStrategy[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Shell for T where
    T: Send + Sync + Clone + Any + 'static, 
[src]

impl<T> Message for T where
    T: Shell + Debug
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Clone for T where
    T: Clone
[src]