Trait xecute::Daemon[][src]

pub trait Daemon {
    type Config;
    fn load_config(&self, path_maybe: &Option<PathBuf>) -> Result<Self::Config>;
#[must_use] fn start<'life0, 'async_trait>(
        &'life0 mut self,
        cfg: Self::Config
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn stop<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

fn load_config(&self, path_maybe: &Option<PathBuf>) -> Result<Self::Config>[src]

#[must_use]fn start<'life0, 'async_trait>(
    &'life0 mut self,
    cfg: Self::Config
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn stop<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

Loading content...