pub struct AuditLog { /* private fields */ }Expand description
In-memory audit log for governance decisions.
Implementations§
Source§impl AuditLog
impl AuditLog
pub fn new() -> Self
pub fn set_time(&mut self, now_ms: u64)
pub fn record_allow(&mut self, call: &ToolCall)
pub fn record_deny(&mut self, call: &ToolCall, verdict: &GovernanceVerdict)
pub fn entries(&self) -> &[AuditEntry]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditLog
impl RefUnwindSafe for AuditLog
impl Send for AuditLog
impl Sync for AuditLog
impl Unpin for AuditLog
impl UnsafeUnpin for AuditLog
impl UnwindSafe for AuditLog
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