Skip to main content

ChannelSendRoute

Trait ChannelSendRoute 

Source
pub trait ChannelSendRoute: Send + Sync {
    // Required method
    fn send<'a>(
        &'a self,
        runtime: &'a KhiveRuntime,
        token: &'a NamespaceToken,
        params: Value,
    ) -> ChannelSendFuture<'a>;
}
Expand description

A trusted host component’s complete custom send policy.

The comm pack validates its ordinary send parameters before calling this route. params retains the caller’s original parsed values, including optional-field presence and address spelling. The runtime and namespace token are the same ones authorized for the dispatch. The route owns persistence, replay handling, attachments, and transport submission; no legacy message write or fallback follows its result. A supplied idempotency key still passes the shared key validation before the route is called. Installing a route does not start a channel or a resident task.

Required Methods§

Source

fn send<'a>( &'a self, runtime: &'a KhiveRuntime, token: &'a NamespaceToken, params: Value, ) -> ChannelSendFuture<'a>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§