pub struct ActionAuditTrailAspect { /* private fields */ }Expand description
Audit-trail aspect.
The host calls bind(ctx) before each guarded invocation. The
aspect appends one record per invocation, in arrival order.
Implementations§
Source§impl ActionAuditTrailAspect
impl ActionAuditTrailAspect
Sourcepub fn bind(&self, ctx: AuditContext) -> u64
pub fn bind(&self, ctx: AuditContext) -> u64
Bind an audit context to the next guarded invocation.
Sourcepub fn snapshot(&self) -> Vec<AuditRecord>
pub fn snapshot(&self) -> Vec<AuditRecord>
Snapshot the full audit trail.
Trait Implementations§
Source§impl Aspect for ActionAuditTrailAspect
impl Aspect for ActionAuditTrailAspect
Source§fn around(
&self,
pjp: ProceedingJoinPoint<'_>,
) -> Result<Box<dyn Any>, AspectError>
fn around( &self, pjp: ProceedingJoinPoint<'_>, ) -> Result<Box<dyn Any>, AspectError>
Advice that wraps the entire target function execution. Read more
Source§fn after(&self, _ctx: &JoinPoint, _result: &dyn Any)
fn after(&self, _ctx: &JoinPoint, _result: &dyn Any)
Advice executed after the target function completes successfully. Read more
Source§fn after_error(&self, _ctx: &JoinPoint, _error: &AspectError)
fn after_error(&self, _ctx: &JoinPoint, _error: &AspectError)
Advice executed when the target function encounters an error. Read more
Source§impl Clone for ActionAuditTrailAspect
impl Clone for ActionAuditTrailAspect
Source§fn clone(&self) -> ActionAuditTrailAspect
fn clone(&self) -> ActionAuditTrailAspect
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 moreSource§impl Default for ActionAuditTrailAspect
impl Default for ActionAuditTrailAspect
Source§fn default() -> ActionAuditTrailAspect
fn default() -> ActionAuditTrailAspect
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActionAuditTrailAspect
impl !RefUnwindSafe for ActionAuditTrailAspect
impl Send for ActionAuditTrailAspect
impl Sync for ActionAuditTrailAspect
impl Unpin for ActionAuditTrailAspect
impl UnsafeUnpin for ActionAuditTrailAspect
impl !UnwindSafe for ActionAuditTrailAspect
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