#[non_exhaustive]pub enum StreamPhase {
#[non_exhaustive]
Prefetching {
target: u64,
chunk_size: usize,
},
#[non_exhaustive]
Downloading {
chunk_size: usize,
},
Complete,
}
Expand description
Current phase of the download for use during a progress callback.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Prefetching
Stream is currently in a prefetch state.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Downloading
Stream is currently in a downloading state.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
Complete
Stream has finished downloading.
Trait Implementations§
Source§impl Clone for StreamPhase
impl Clone for StreamPhase
Source§fn clone(&self) -> StreamPhase
fn clone(&self) -> StreamPhase
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 StreamPhase
impl Debug for StreamPhase
Source§impl PartialEq for StreamPhase
impl PartialEq for StreamPhase
impl Copy for StreamPhase
impl Eq for StreamPhase
impl StructuralPartialEq for StreamPhase
Auto Trait Implementations§
impl Freeze for StreamPhase
impl RefUnwindSafe for StreamPhase
impl Send for StreamPhase
impl Sync for StreamPhase
impl Unpin for StreamPhase
impl UnwindSafe for StreamPhase
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