pub struct Receiver { /* private fields */ }Expand description
Local retained-body accounting. Capacity is never advertised to a sender. The adapter reserves actual payload backing before retaining a suffix.
Implementations§
Source§impl Receiver
impl Receiver
Sourcepub fn new(
channel: Channel,
base: Prefix,
limits: PipelineLimits,
) -> Result<Self, FlowError>
pub fn new( channel: Channel, base: Prefix, limits: PipelineLimits, ) -> Result<Self, FlowError>
Start at an exact applied prefix with a bounded local metadata window.
Sourcepub const fn report(&self) -> Report
pub const fn report(&self) -> Report
Exact contiguous receipt. This supplies no persistence or vote evidence.
Sourcepub fn available(&self) -> PipelineLimits
pub fn available(&self) -> PipelineLimits
Local room after every still-retained body, independently of queue slots.
Sourcepub fn reinitialize(
&mut self,
channel: Channel,
applied: Prefix,
) -> Result<(), FlowError>
pub fn reinitialize( &mut self, channel: Channel, applied: Prefix, ) -> Result<(), FlowError>
Install a fresh incarnation after all old payload ownership is fenced.
Sourcepub fn retract(
&mut self,
epoch: ReceiveEpoch,
through: Prefix,
) -> Result<(), FlowError>
pub fn retract( &mut self, epoch: ReceiveEpoch, through: Prefix, ) -> Result<(), FlowError>
Retract only unadmitted history. Accepted bodies remain charged. Caller fences old packets and supplies a never-reused receive epoch.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Receiver
impl RefUnwindSafe for Receiver
impl Send for Receiver
impl Sync for Receiver
impl Unpin for Receiver
impl UnsafeUnpin for Receiver
impl UnwindSafe for Receiver
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