[][src]Struct vorarbeiter::Supervisor

pub struct Supervisor { /* fields omitted */ }

A supervisor for child processes.

Supports default, which will result in a kill_timeout of 10 seconds.

When the supervisor is dropped, it will kill all of its owned child processes using shutdown_process in the reverse order they were added, ignoring any errors.

Implementations

impl Supervisor[src]

pub fn add_child(&mut self, child: Child)[src]

Adds a child process to the supervisor.

impl Supervisor[src]

pub fn new(kill_timeout: Duration) -> Self[src]

Create a new supervisor with the given kill timeout.

Trait Implementations

impl Debug for Supervisor[src]

impl Default for Supervisor[src]

impl Drop for Supervisor[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.