pub struct AgentAuditLog { /* private fields */ }Expand description
In-memory bounded audit log shared by resident agent adapters.
Implementations§
Source§impl AgentAuditLog
impl AgentAuditLog
Sourcepub fn with_sink(sink: AgentAuditSink) -> Self
pub fn with_sink(sink: AgentAuditSink) -> Self
Creates a bounded in-memory log with a durable async mirror.
Sourcepub fn record(&self, event: AgentAuditEvent) -> u64
pub fn record(&self, event: AgentAuditEvent) -> u64
Records an event and returns its monotonic in-process sequence number.
Sourcepub fn snapshot(&self) -> Vec<AgentAuditEvent>
pub fn snapshot(&self) -> Vec<AgentAuditEvent>
Returns a stable snapshot for diagnostics and tests.
Trait Implementations§
Source§impl Clone for AgentAuditLog
impl Clone for AgentAuditLog
Source§fn clone(&self) -> AgentAuditLog
fn clone(&self) -> AgentAuditLog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AgentAuditLog
impl RefUnwindSafe for AgentAuditLog
impl Send for AgentAuditLog
impl Sync for AgentAuditLog
impl Unpin for AgentAuditLog
impl UnsafeUnpin for AgentAuditLog
impl UnwindSafe for AgentAuditLog
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