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§
Sourcefn 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 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
Sourcefn 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 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
Sourcefn estimate_processing_time(&self, command: &DebugCommand) -> Duration
fn estimate_processing_time(&self, command: &DebugCommand) -> Duration
Get the estimated processing time for a command
Sourcefn supports_command(&self, command: &DebugCommand) -> bool
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".