pub struct QueryBuilderProcessor { /* private fields */ }Expand description
Query Builder Processor for debug commands
Implementations§
Source§impl QueryBuilderProcessor
 
impl QueryBuilderProcessor
Sourcepub async fn cleanup_cache(&self)
 
pub async fn cleanup_cache(&self)
Clean up cache periodically
Sourcepub async fn get_cache_stats(&self) -> Value
 
pub async fn get_cache_stats(&self) -> Value
Get cache statistics
Trait Implementations§
Source§impl DebugCommandProcessor for QueryBuilderProcessor
 
impl DebugCommandProcessor for QueryBuilderProcessor
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,
 
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,
 
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
 
fn estimate_processing_time(&self, command: &DebugCommand) -> Duration
Get the estimated processing time for a command
Source§fn supports_command(&self, command: &DebugCommand) -> bool
 
fn supports_command(&self, command: &DebugCommand) -> bool
Check if the processor supports a specific command type
Auto Trait Implementations§
impl Freeze for QueryBuilderProcessor
impl !RefUnwindSafe for QueryBuilderProcessor
impl Send for QueryBuilderProcessor
impl Sync for QueryBuilderProcessor
impl Unpin for QueryBuilderProcessor
impl !UnwindSafe for QueryBuilderProcessor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more