pub struct TransferWatch { /* private fields */ }Expand description
Hears how far each file in flight one way has got. Changes that arrive faster than the reader reads are heard together: the next read names each file that differs from what the reader last heard, and how each one it heard in flight ended.
Implementations§
Source§impl TransferWatch
impl TransferWatch
Sourcepub async fn next(&mut self) -> Option<Vec<TransferChange>>
pub async fn next(&mut self) -> Option<Vec<TransferChange>>
Every file in flight as one Reset on the first read; after that,
wait for a file’s progress to change and name each file it changed
for. None once the store has closed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransferWatch
impl !RefUnwindSafe for TransferWatch
impl Send for TransferWatch
impl Sync for TransferWatch
impl Unpin for TransferWatch
impl UnsafeUnpin for TransferWatch
impl !UnwindSafe for TransferWatch
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.