[][src]Struct supervisor_rs::kindergarten::Kindergarten

pub struct Kindergarten {
    pub server_config_path: String,
    // some fields omitted
}

Fields

server_config_path: String

Methods

impl Kindergarten[src]

pub fn new() -> Self[src]

pub fn register_id(&mut self, id: u32, child: Child, config: Config)[src]

pub fn register_name(&mut self, name: &String, id: u32)[src]

pub fn handle_pre_hook(
    &mut self,
    pre_hook_chain: Vec<(String, String, Config)>
) -> Result<()>
[src]

pub fn start(&mut self, name: &String, config: &mut Config) -> Result<()>[src]

pub fn restart(&mut self, name: &String, config: &mut Config) -> Result<()>[src]

pub fn stop(&mut self, name: &String) -> Result<()>[src]

pub fn stop_all(&mut self) -> Result<()>[src]

pub fn check_around(&mut self) -> Result<()>[src]

pub fn delete_by_name(&mut self, name: &String) -> Result<()>[src]

pub fn has_child(&mut self, name: &String) -> Option<&u32>[src]

pub fn get_child_config(&mut self, name: &String) -> Option<Config>[src]

pub fn check_status(&mut self, name: &String) -> Result<String>[src]

Trait Implementations

impl Debug for Kindergarten[src]

Auto Trait Implementations

Blanket Implementations

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.

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]