pub struct AuditRelayHook<S> { /* private fields */ }Expand description
Native relay hook: extend the actual atomic target apply after bounded reads.
Implementations§
Trait Implementations§
Source§impl<S: Clone> Clone for AuditRelayHook<S>
impl<S: Clone> Clone for AuditRelayHook<S>
Source§impl<S: Debug> Debug for AuditRelayHook<S>
impl<S: Debug> Debug for AuditRelayHook<S>
Source§impl<S: NamespaceStore> RelayHook for AuditRelayHook<S>
impl<S: NamespaceStore> RelayHook for AuditRelayHook<S>
Source§fn before_apply<'a>(
&'a self,
target: &'a Partition,
rows: &'a [(u64, RelayV1)],
pre: &'a mut Vec<Precondition>,
writes: &'a mut Vec<Write>,
) -> BoxFuture<'a, Result<(), StoreError>>
fn before_apply<'a>( &'a self, target: &'a Partition, rows: &'a [(u64, RelayV1)], pre: &'a mut Vec<Precondition>, writes: &'a mut Vec<Write>, ) -> BoxFuture<'a, Result<(), StoreError>>
Extend the atomic target batch, or fail delivery for this target.
Source§fn read_keys(
&self,
_target: &Partition,
_rows: &[(u64, RelayV1)],
) -> Result<Vec<Key>, StoreError>
fn read_keys( &self, _target: &Partition, _rows: &[(u64, RelayV1)], ) -> Result<Vec<Key>, StoreError>
Additional raw observations, batched with the target watermark read.
The delivery engine deduplicates and bounds this declaration before IO.
Source§fn before_apply_observed<'a>(
&'a self,
target: &'a Partition,
rows: &'a [(u64, RelayV1)],
_observed: &'a [(Key, Option<Value>)],
pre: &'a mut Vec<Precondition>,
writes: &'a mut Vec<Write>,
) -> BoxFuture<'a, Result<(), StoreError>>
fn before_apply_observed<'a>( &'a self, target: &'a Partition, rows: &'a [(u64, RelayV1)], _observed: &'a [(Key, Option<Value>)], pre: &'a mut Vec<Precondition>, writes: &'a mut Vec<Write>, ) -> BoxFuture<'a, Result<(), StoreError>>
Extend using the declared snapshot, without hidden IO. Older hooks
retain their original callback; production content hooks override this.
Auto Trait Implementations§
impl<S> Freeze for AuditRelayHook<S>where
S: Freeze,
impl<S> RefUnwindSafe for AuditRelayHook<S>where
S: RefUnwindSafe,
impl<S> Send for AuditRelayHook<S>where
S: Send,
impl<S> Sync for AuditRelayHook<S>where
S: Sync,
impl<S> Unpin for AuditRelayHook<S>where
S: Unpin,
impl<S> UnsafeUnpin for AuditRelayHook<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for AuditRelayHook<S>where
S: 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