pub enum Outcome<M, L = PathBuf> {
Downloaded {
file: M,
location: L,
verified: bool,
},
Failed {
file: M,
error: Error,
},
Progress {
file: M,
received: u64,
total: u64,
},
Skipped {
file: M,
location: L,
},
StreamFailed {
error: Error,
},
}Expand description
Per-item outcome of a transfer stream, generic over the caller’s item type
M. Failed carries per-item errors so a single bad item in a batch
doesn’t tear down the whole stream. StreamFailed carries errors that
happen before an item is available, such as a failed listing request or
destination preflight.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<M, L = PathBuf> !RefUnwindSafe for Outcome<M, L>
impl<M, L = PathBuf> !UnwindSafe for Outcome<M, L>
impl<M, L> Freeze for Outcome<M, L>
impl<M, L> Send for Outcome<M, L>
impl<M, L> Sync for Outcome<M, L>
impl<M, L> Unpin for Outcome<M, L>
impl<M, L> UnsafeUnpin for Outcome<M, L>where
M: UnsafeUnpin,
L: UnsafeUnpin,
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