pub struct AckSink { /* private fields */ }Expand description
The ack side of a step_locked source. A consumer must call ack (or
drop the sink, which releases the source) after handling each emitted
element; the source will not pull element N + 1 from upstream until the
ack for element N has been received.
Implementations§
Source§impl AckSink
impl AckSink
Sourcepub fn ack(&self, token: InstantToken) -> bool
pub fn ack(&self, token: InstantToken) -> bool
Acknowledge a previously emitted InstantToken, permitting the source
to advance to the next element. Returns false if the source half has
already been dropped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AckSink
impl RefUnwindSafe for AckSink
impl Send for AckSink
impl Sync for AckSink
impl Unpin for AckSink
impl UnsafeUnpin for AckSink
impl UnwindSafe for AckSink
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