[][src]Trait rgb::service::Service

pub trait Service {
#[must_use]    pub fn run_loop<'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        Self: 'async_trait
; }

Trait for simpler service implementation with run loops

Required methods

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

Run loop for the service, which must never return. If you have a run loop that may fail, use TryService trait istead

Loading content...

Implementors

Loading content...