#[non_exhaustive]pub struct StreamState {
pub current_position: u64,
pub elapsed: Duration,
pub phase: StreamPhase,
pub current_chunk: Range<u64>,
}
Expand description
State of the stream for use during a progress callback.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.current_position: u64
Current position of the stream.
elapsed: Duration
Time elapsed since download start.
phase: StreamPhase
Current phase of the download.
current_chunk: Range<u64>
Current chunk of the stream being downloaded.
Trait Implementations§
Source§impl Clone for StreamState
impl Clone for StreamState
Source§fn clone(&self) -> StreamState
fn clone(&self) -> StreamState
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 StreamState
impl Debug for StreamState
Source§impl PartialEq for StreamState
impl PartialEq for StreamState
impl Eq for StreamState
impl StructuralPartialEq for StreamState
Auto Trait Implementations§
impl Freeze for StreamState
impl RefUnwindSafe for StreamState
impl Send for StreamState
impl Sync for StreamState
impl Unpin for StreamState
impl UnwindSafe for StreamState
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