Skip to main content

ReplayHandler

Trait ReplayHandler 

Source
pub trait ReplayHandler: Send + 'static {
    // Required method
    fn handle_command(
        &mut self,
        seq: u64,
        command_type: CommandType,
        command_version: u8,
        command_data: Vec<u8>,
    ) -> impl Future<Output = Result<()>> + Send;
}
Expand description

Callback that the replay loop calls for each command. The implementation should deserialize and call apply() on the standby engine.

Required Methods§

Source

fn handle_command( &mut self, seq: u64, command_type: CommandType, command_version: u8, command_data: Vec<u8>, ) -> impl Future<Output = Result<()>> + Send

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.

Implementors§