pub struct AuditReserveHook { /* private fields */ }Expand description
Worker relay hook reserves target-local SQL extension space without DO reads.
Implementations§
Trait Implementations§
Source§impl Clone for AuditReserveHook
impl Clone for AuditReserveHook
Source§impl Debug for AuditReserveHook
impl Debug for AuditReserveHook
Source§impl RelayHook for AuditReserveHook
impl RelayHook for AuditReserveHook
Source§fn reserved_ops(&self, target: &Partition, rows: &[(u64, RelayV1)]) -> usize
fn reserved_ops(&self, target: &Partition, rows: &[(u64, RelayV1)]) -> usize
Target-local extensions may reserve operations before a remote apply.
The relay shrinks groups until their base effects and this reserve fit.
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 Freeze for AuditReserveHook
impl RefUnwindSafe for AuditReserveHook
impl Send for AuditReserveHook
impl Sync for AuditReserveHook
impl Unpin for AuditReserveHook
impl UnsafeUnpin for AuditReserveHook
impl UnwindSafe for AuditReserveHook
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