[][src]Trait dsf_core::api::Subscribe

pub trait Subscribe {
    type Options;
    type Streamable;
    type Error;
#[must_use]    fn subscribe<'life0, 'async_trait>(
        &'life0 mut self,
        options: Self::Options
    ) -> Pin<Box<dyn Future<Output = Result<Self::Streamable, Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

A boxed future stream to shorten method definitions #async_trait Subscriber API used by subscribers to service data

Associated Types

type Options

type Streamable

type Error

Loading content...

Required methods

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

Locate a DIoT service in the distributed database This returns a future that will resolve to the desired service or an error

Loading content...

Implementors

Loading content...