pub enum TransferGuardState {
InProgress {
bytes: u64,
max_bytes: u64,
},
Completed {
bytes: u64,
verified: bool,
},
Cancelled {
bytes: u64,
},
Failed {
bytes: u64,
message: String,
},
Abandoned {
bytes: u64,
},
}Expand description
Observable terminal or in-flight transfer state.
Variants§
InProgress
Transfer is active and has observed bounded bytes.
Completed
Transfer completed with optional digest verification.
Fields
Cancelled
Transfer was explicitly cancelled.
Failed
Transfer failed with a bounded diagnostic.
Abandoned
Guard was dropped before a terminal method was called.
Trait Implementations§
Source§impl Clone for TransferGuardState
impl Clone for TransferGuardState
Source§fn clone(&self) -> TransferGuardState
fn clone(&self) -> TransferGuardState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TransferGuardState
impl Debug for TransferGuardState
Source§impl PartialEq for TransferGuardState
impl PartialEq for TransferGuardState
Source§fn eq(&self, other: &TransferGuardState) -> bool
fn eq(&self, other: &TransferGuardState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TransferGuardState
impl StructuralPartialEq for TransferGuardState
Auto Trait Implementations§
impl Freeze for TransferGuardState
impl RefUnwindSafe for TransferGuardState
impl Send for TransferGuardState
impl Sync for TransferGuardState
impl Unpin for TransferGuardState
impl UnsafeUnpin for TransferGuardState
impl UnwindSafe for TransferGuardState
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
Compare self to
key and return true if they are equal.