pub struct AuditEntry<S, C> {
pub transition: String,
pub from: S,
pub to: S,
pub context: C,
pub version: u64,
pub recorded_at: SystemTime,
}Expand description
Audit record emitted for each successful transition.
Fields§
§transition: StringTransition name.
from: SPrevious state.
to: SNew state.
context: CCaller-supplied transition context.
version: u64Version after the transition.
recorded_at: SystemTimeWall-clock time when the transition was applied.
Trait Implementations§
Auto Trait Implementations§
impl<S, C> Freeze for AuditEntry<S, C>
impl<S, C> RefUnwindSafe for AuditEntry<S, C>where
S: RefUnwindSafe,
C: RefUnwindSafe,
impl<S, C> Send for AuditEntry<S, C>
impl<S, C> Sync for AuditEntry<S, C>
impl<S, C> Unpin for AuditEntry<S, C>
impl<S, C> UnsafeUnpin for AuditEntry<S, C>where
S: UnsafeUnpin,
C: UnsafeUnpin,
impl<S, C> UnwindSafe for AuditEntry<S, C>where
S: UnwindSafe,
C: UnwindSafe,
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