Skip to main content

RemoteForwarder

Trait RemoteForwarder 

Source
pub trait RemoteForwarder:
    Send
    + Sync
    + 'static {
    // Required method
    fn forward<'life0, 'life1, 'async_trait>(
        &'life0 self,
        node_id: &'life1 str,
        msg: KernelMessage,
    ) -> Pin<Box<dyn Future<Output = KernelResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Carries messages for remote nodes when the mesh runs outside this kernel (service mode, ADR-103 P3-U): the router hands every MessageTarget::RemoteNode message to it instead of a MeshRuntime.

Required Methods§

Source

fn forward<'life0, 'life1, 'async_trait>( &'life0 self, node_id: &'life1 str, msg: KernelMessage, ) -> Pin<Box<dyn Future<Output = KernelResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Forward msg to node_id.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§