pub struct PostCommitActivityRecorder {
pub audit: AuditService,
pub events: EventServices,
pub notifications: NotificationService,
}Expand description
Compatibility helper for best-effort work after an operational commit.
This helper does not provide transactional audit durability. An adapter may claim that only when it atomically commits the mutation and local audit or outbox intent in its own store transaction.
Fields§
§audit: AuditService§events: EventServices§notifications: NotificationServiceImplementations§
Source§impl PostCommitActivityRecorder
impl PostCommitActivityRecorder
pub async fn record( &self, audit: AuditEvent, event: DomainEvent, notification: Option<Notification>, ) -> Vec<PostCommitActivityWarning>
Trait Implementations§
Source§impl Clone for PostCommitActivityRecorder
impl Clone for PostCommitActivityRecorder
Source§fn clone(&self) -> PostCommitActivityRecorder
fn clone(&self) -> PostCommitActivityRecorder
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 !RefUnwindSafe for PostCommitActivityRecorder
impl !UnwindSafe for PostCommitActivityRecorder
impl Freeze for PostCommitActivityRecorder
impl Send for PostCommitActivityRecorder
impl Sync for PostCommitActivityRecorder
impl Unpin for PostCommitActivityRecorder
impl UnsafeUnpin for PostCommitActivityRecorder
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