pub struct AuditProcessor { /* private fields */ }Expand description
Wraps MessageProcessor to automatically log requests, responses, and security events
Implementations§
Source§impl AuditProcessor
impl AuditProcessor
Sourcepub fn builder(
processor: Arc<dyn MessageProcessor + Send + Sync>,
) -> AuditProcessorBuilder
pub fn builder( processor: Arc<dyn MessageProcessor + Send + Sync>, ) -> AuditProcessorBuilder
Create a new audit processor builder
Trait Implementations§
Source§impl MessageProcessor for AuditProcessor
impl MessageProcessor for AuditProcessor
Source§fn process_message<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Option<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_message<'life0, 'async_trait>(
&'life0 self,
message: Message,
) -> Pin<Box<dyn Future<Output = Option<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a single JSON-RPC message
Source§fn get_capabilities(&self) -> ProcessorCapabilities
fn get_capabilities(&self) -> ProcessorCapabilities
Get processor capabilities
Source§fn process_batch<'life0, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
) -> Pin<Box<dyn Future<Output = Vec<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn process_batch<'life0, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
) -> Pin<Box<dyn Future<Output = Vec<Response>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Process a batch of JSON-RPC messages
Source§fn supports_batching(&self) -> bool
fn supports_batching(&self) -> bool
Check if batch processing is supported
Auto Trait Implementations§
impl Freeze for AuditProcessor
impl !RefUnwindSafe for AuditProcessor
impl Send for AuditProcessor
impl Sync for AuditProcessor
impl Unpin for AuditProcessor
impl UnsafeUnpin for AuditProcessor
impl !UnwindSafe for AuditProcessor
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