pub struct HolderRelayHook {
pub clock: Arc<dyn Clock>,
}Expand description
Uses supplied observations only: no store/client exists in this hook.
Fields§
§clock: Arc<dyn Clock>Clock used for fresh bounded commit deadlines.
Trait Implementations§
Source§impl Debug for HolderRelayHook
impl Debug for HolderRelayHook
Source§impl RelayHook for HolderRelayHook
impl RelayHook for HolderRelayHook
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<'a>(
&'a self,
_: &'a Partition,
_: &'a [(u64, RelayV1)],
_: &'a mut Vec<Precondition>,
_: &'a mut Vec<Write>,
) -> BoxFuture<'a, Result<(), StoreError>>
fn before_apply<'a>( &'a self, _: &'a Partition, _: &'a [(u64, RelayV1)], _: &'a mut Vec<Precondition>, _: &'a mut Vec<Write>, ) -> BoxFuture<'a, Result<(), StoreError>>
Extend the atomic target batch, or fail delivery for this target.
Source§fn before_apply_observed<'a>(
&'a self,
target: &'a Partition,
rows: &'a [(u64, RelayV1)],
seen: &'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)], seen: &'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 !RefUnwindSafe for HolderRelayHook
impl !UnwindSafe for HolderRelayHook
impl Freeze for HolderRelayHook
impl Send for HolderRelayHook
impl Sync for HolderRelayHook
impl Unpin for HolderRelayHook
impl UnsafeUnpin for HolderRelayHook
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