Skip to main content

DebugCommandProcessor

Trait DebugCommandProcessor 

Source
pub trait DebugCommandProcessor: Send + Sync {
    // Required methods
    fn process<'life0, 'async_trait>(
        &'life0 self,
        command: DebugCommand,
    ) -> Pin<Box<dyn Future<Output = Result<DebugResponse>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn validate<'life0, 'life1, 'async_trait>(
        &'life0 self,
        command: &'life1 DebugCommand,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn estimate_processing_time(&self, command: &DebugCommand) -> Duration;
    fn supports_command(&self, command: &DebugCommand) -> bool;
}
Expand description

Trait for processing debug commands

Required Methods§

Source

fn process<'life0, 'async_trait>( &'life0 self, command: DebugCommand, ) -> Pin<Box<dyn Future<Output = Result<DebugResponse>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Process a debug command and return a response

Source

fn validate<'life0, 'life1, 'async_trait>( &'life0 self, command: &'life1 DebugCommand, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Validate if the command can be processed

Source

fn estimate_processing_time(&self, command: &DebugCommand) -> Duration

Get the estimated processing time for a command

Source

fn supports_command(&self, command: &DebugCommand) -> bool

Check if the processor supports a specific command type

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§