[][src]Trait organix::service::Service

pub trait Service: Send + Sized + 'static {
    type IntercomMsg: IntercomMsg;

    const SERVICE_IDENTIFIER: ServiceIdentifier;

    fn prepare(service_state: ServiceState<Self>) -> Self;
#[must_use] fn start<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }

Associated Types

Loading content...

Associated Constants

Loading content...

Required methods

fn prepare(service_state: ServiceState<Self>) -> Self

#[must_use]fn start<'async_trait>(
    self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...