wick_host

Trait Host

Source
pub trait Host {
    // Required methods
    fn namespace(&self) -> &str;
    fn get_signature(
        &self,
        path: Option<&[&str]>,
        entity: Option<&Entity>,
    ) -> Result<ComponentSignature, HostError>;
    fn invoke<'life0, 'async_trait>(
        &'life0 self,
        invocation: Invocation,
        data: Option<RuntimeConfig>,
    ) -> Pin<Box<dyn Future<Output = Result<PacketStream, HostError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn invoke_deep<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        path: Option<&'life1 [&'life2 str]>,
        invocation: Invocation,
        data: Option<RuntimeConfig>,
    ) -> Pin<Box<dyn Future<Output = Result<PacketStream, HostError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_active_config(&self) -> WickConfiguration;
}

Required Methods§

Source

fn namespace(&self) -> &str

Source

fn get_signature( &self, path: Option<&[&str]>, entity: Option<&Entity>, ) -> Result<ComponentSignature, HostError>

Source

fn invoke<'life0, 'async_trait>( &'life0 self, invocation: Invocation, data: Option<RuntimeConfig>, ) -> Pin<Box<dyn Future<Output = Result<PacketStream, HostError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn invoke_deep<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, path: Option<&'life1 [&'life2 str]>, invocation: Invocation, data: Option<RuntimeConfig>, ) -> Pin<Box<dyn Future<Output = Result<PacketStream, HostError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn get_active_config(&self) -> WickConfiguration

Implementors§