pub trait LocalRequestProcessor {
// Required method
async fn process_request(
&mut self,
channel: Channel,
ctx: ConnectionHandlerContext,
request: RemotingCommand,
) -> RocketMQResult<Option<RemotingCommand>>;
}Expand description
Trait for processing requests.
Required Methods§
Sourceasync fn process_request(
&mut self,
channel: Channel,
ctx: ConnectionHandlerContext,
request: RemotingCommand,
) -> RocketMQResult<Option<RemotingCommand>>
async fn process_request( &mut self, channel: Channel, ctx: ConnectionHandlerContext, request: RemotingCommand, ) -> RocketMQResult<Option<RemotingCommand>>
Process a request.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.