pub enum DownloadState {
Destination(String),
Resuming(u64),
Downloading(f32, u64, u64, u64),
Downloaded(f32, u64, u64),
ParseError(String),
}Expand description
Occurs when a download is in progress
Variants§
Destination(String)
Resuming(u64)
Downloading(f32, u64, u64, u64)
Downloaded(f32, u64, u64)
ParseError(String)
Implementations§
Source§impl DownloadState
impl DownloadState
pub fn parse<'a>( split: impl DoubleEndedIterator<Item = &'a str> + Send, ) -> DownloadState
Auto Trait Implementations§
impl Freeze for DownloadState
impl RefUnwindSafe for DownloadState
impl Send for DownloadState
impl Sync for DownloadState
impl Unpin for DownloadState
impl UnwindSafe for DownloadState
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