pub struct AuditLogMiddleware { /* private fields */ }Expand description
Audit-log middleware — emits an AuditEntry::lifecycle (tool_start)
on BeforeTool and an AuditEntry::tool_execution on AfterTool,
plus records SecurityDecision entries supplied by AuthorizerMiddleware
when wrapped together via crate::middleware::build_hooks chain.
Implementations§
Trait Implementations§
Source§impl Middleware for AuditLogMiddleware
impl Middleware for AuditLogMiddleware
Source§fn phases(&self) -> Vec<MiddlewarePhase>
fn phases(&self) -> Vec<MiddlewarePhase>
Phases at which this middleware wishes to be invoked.
Source§fn handle<'a>(
&'a self,
ctx: &'a MiddlewareContext,
) -> Pin<Box<dyn Future<Output = MiddlewareResult> + Send + 'a>>
fn handle<'a>( &'a self, ctx: &'a MiddlewareContext, ) -> Pin<Box<dyn Future<Output = MiddlewareResult> + Send + 'a>>
Inspect the context for the current phase and return a result.
Auto Trait Implementations§
impl !RefUnwindSafe for AuditLogMiddleware
impl !UnwindSafe for AuditLogMiddleware
impl Freeze for AuditLogMiddleware
impl Send for AuditLogMiddleware
impl Sync for AuditLogMiddleware
impl Unpin for AuditLogMiddleware
impl UnsafeUnpin for AuditLogMiddleware
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