pub struct OpenedCapture { /* private fields */ }Expand description
Retains the original opened source, producer and exact in-flight copy across cancellation.
Implementations§
Source§impl OpenedCapture
impl OpenedCapture
pub fn acknowledged(&self) -> u64
pub async fn finish(&mut self) -> Result<FileReference, Error>
Sourcepub async fn synchronize(&mut self, visible_length: u64) -> Result<bool, Error>
pub async fn synchronize(&mut self, visible_length: u64) -> Result<bool, Error>
Admits the selected visible prefix without sealing the original producer. False discards an unstable, unaccepted observation; accepted bytes remain retained.
Sourcepub async fn finish_at(
&mut self,
visible_length: u64,
) -> Result<FileReference, Error>
pub async fn finish_at( &mut self, visible_length: u64, ) -> Result<FileReference, Error>
Verifies and seals one quiescent, range-relative visible prefix.
Sourcepub async fn interrupt(&mut self) -> Result<FileReference, Error>
pub async fn interrupt(&mut self) -> Result<FileReference, Error>
Settles an accepted append and seals that prefix without another source read.
Auto Trait Implementations§
impl !Freeze for OpenedCapture
impl !RefUnwindSafe for OpenedCapture
impl !UnwindSafe for OpenedCapture
impl Send for OpenedCapture
impl Sync for OpenedCapture
impl Unpin for OpenedCapture
impl UnsafeUnpin for OpenedCapture
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