pub struct MemoryNotificationStore { /* private fields */ }Expand description
Deterministic process-local coalescing notification adapter.
Implementations§
Trait Implementations§
Source§impl Default for MemoryNotificationStore
impl Default for MemoryNotificationStore
impl ImmediateNotificationStore for MemoryNotificationStore
Source§impl NotificationStore for MemoryNotificationStore
impl NotificationStore for MemoryNotificationStore
Source§fn publish(
&self,
authority_id: AuthorityId,
head: Head,
budget: WorkBudget,
) -> NotificationResult<()>
fn publish( &self, authority_id: AuthorityId, head: Head, budget: WorkBudget, ) -> NotificationResult<()>
Publishes a disposable monotonic hint. Read more
Source§fn poll_after(
&self,
authority_id: AuthorityId,
after: Head,
budget: WorkBudget,
) -> NotificationResult<NotificationPoll>
fn poll_after( &self, authority_id: AuthorityId, after: Head, budget: WorkBudget, ) -> NotificationResult<NotificationPoll>
Polls for a hint strictly newer than
after in epoch/sequence order. Read moreAuto Trait Implementations§
impl !Freeze for MemoryNotificationStore
impl RefUnwindSafe for MemoryNotificationStore
impl Send for MemoryNotificationStore
impl Sync for MemoryNotificationStore
impl Unpin for MemoryNotificationStore
impl UnsafeUnpin for MemoryNotificationStore
impl UnwindSafe for MemoryNotificationStore
Blanket Implementations§
Source§impl<T> AsyncNotificationStore for Twhere
T: ImmediateNotificationStore + ?Sized,
impl<T> AsyncNotificationStore for Twhere
T: ImmediateNotificationStore + ?Sized,
Source§async fn publish_hint(
&self,
authority_id: AuthorityId,
head: Head,
budget: WorkCounters,
cancellation: &CancellationToken,
) -> Result<OperationReceipt<()>, OperationFailure<NotificationError>>
async fn publish_hint( &self, authority_id: AuthorityId, head: Head, budget: WorkCounters, cancellation: &CancellationToken, ) -> Result<OperationReceipt<()>, OperationFailure<NotificationError>>
Asynchronously publishes one disposable head hint. Read more
Source§async fn poll_hint_after(
&self,
authority_id: AuthorityId,
after: Head,
budget: WorkCounters,
cancellation: &CancellationToken,
) -> Result<OperationReceipt<NotificationPoll>, OperationFailure<NotificationError>>
async fn poll_hint_after( &self, authority_id: AuthorityId, after: Head, budget: WorkCounters, cancellation: &CancellationToken, ) -> Result<OperationReceipt<NotificationPoll>, OperationFailure<NotificationError>>
Asynchronously polls for a possibly newer hint. Read more
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request