pub enum TransferEnd {
Finished,
Failed,
Held,
Dropped,
}Expand description
How a file’s transfer ended, decided in the step that takes it out of the files in flight. When two attempts move one file at once, the last to end says it.
Variants§
Finished
Its bytes all moved: an upload stored them, or a download assembled and checked the file’s whole copy, which the write committing its pin keeps.
Failed
It failed, and its failure went where the transfer’s failures go: an upload’s pending record, a pin’s call.
Held
A hold stopped it before it finished, and nothing failed: a metered network, and for an upload also the pause, or a self-replacement pausing writes. It starts again once the hold ends (§12.3, §17.8, §17.9).
Dropped
Whatever moved its bytes dropped it before it ended, as a pin’s caller does that drops the call.
Trait Implementations§
Source§impl Clone for TransferEnd
impl Clone for TransferEnd
Source§fn clone(&self) -> TransferEnd
fn clone(&self) -> TransferEnd
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransferEnd
impl Debug for TransferEnd
Source§impl PartialEq for TransferEnd
impl PartialEq for TransferEnd
impl Copy for TransferEnd
impl Eq for TransferEnd
impl StructuralPartialEq for TransferEnd
Auto Trait Implementations§
impl Freeze for TransferEnd
impl RefUnwindSafe for TransferEnd
impl Send for TransferEnd
impl Sync for TransferEnd
impl Unpin for TransferEnd
impl UnsafeUnpin for TransferEnd
impl UnwindSafe for TransferEnd
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.