pub struct ObserverBackpressureState { /* private fields */ }Expand description
Common observer-backpressure suffix.
Implementations§
Source§impl ObserverBackpressureState
impl ObserverBackpressureState
Sourcepub const fn initial(observer_progress: DeliverySeq) -> Self
pub const fn initial(observer_progress: DeliverySeq) -> Self
Constructs an initial refusal at the current observer-progress baseline.
An initial refusal epoch is exactly the progress value observed by the serialized operation.
Sourcepub const fn replay(
backpressure_epoch: ObserverEpoch,
observer_progress: DeliverySeq,
) -> Option<Self>
pub const fn replay( backpressure_epoch: ObserverEpoch, observer_progress: DeliverySeq, ) -> Option<Self>
Reconstructs an exact-token replay refusal at its current baseline.
Pending replay at greater progress must drain or atomically rewrite the
cell epoch to that progress before responding. It therefore returns
None for any inequality.
Sourcepub const fn backpressure_epoch(self) -> ObserverEpoch
pub const fn backpressure_epoch(self) -> ObserverEpoch
Refusal epoch serialized in the response.
Sourcepub const fn observer_progress(self) -> DeliverySeq
pub const fn observer_progress(self) -> DeliverySeq
Observer progress captured by the refusal.
Trait Implementations§
Source§impl Clone for ObserverBackpressureState
impl Clone for ObserverBackpressureState
Source§fn clone(&self) -> ObserverBackpressureState
fn clone(&self) -> ObserverBackpressureState
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 moreimpl Copy for ObserverBackpressureState
Source§impl Debug for ObserverBackpressureState
impl Debug for ObserverBackpressureState
impl Eq for ObserverBackpressureState
impl StructuralPartialEq for ObserverBackpressureState
Auto Trait Implementations§
impl Freeze for ObserverBackpressureState
impl RefUnwindSafe for ObserverBackpressureState
impl Send for ObserverBackpressureState
impl Sync for ObserverBackpressureState
impl Unpin for ObserverBackpressureState
impl UnsafeUnpin for ObserverBackpressureState
impl UnwindSafe for ObserverBackpressureState
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