Skip to main content

RaftShardRouter

Trait RaftShardRouter 

Source
pub trait RaftShardRouter: Send + Sync {
    // Required method
    fn route(
        &self,
        api_key: i16,
        body: Bytes,
        principal: Option<&Principal>,
    ) -> ShardRouteFuture<'_>;
}
Expand description

Classifies and serves shard-addressed KIP-595 requests before metadata dispatch.

Required Methods§

Source

fn route( &self, api_key: i16, body: Bytes, principal: Option<&Principal>, ) -> ShardRouteFuture<'_>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§