pub struct ResolvedVideoDownload {
pub url: String,
pub expected_bytes: Option<u64>,
}Expand description
A video download, resolved: the URL to fetch and, where the item told us enough, how many bytes to expect from it.
Fields§
§url: String§expected_bytes: Option<u64>Predicted size (see download::estimate), used as the progress total
when the response carries no Content-Length — a transcode never does.
Trait Implementations§
Source§impl Clone for ResolvedVideoDownload
impl Clone for ResolvedVideoDownload
Source§fn clone(&self) -> ResolvedVideoDownload
fn clone(&self) -> ResolvedVideoDownload
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 ResolvedVideoDownload
impl Debug for ResolvedVideoDownload
Source§impl From<ResolvedVideoDownload> for ResolvedDownloadUrl
impl From<ResolvedVideoDownload> for ResolvedDownloadUrl
Source§fn from(r: ResolvedVideoDownload) -> Self
fn from(r: ResolvedVideoDownload) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ResolvedVideoDownload
impl PartialEq for ResolvedVideoDownload
Source§fn eq(&self, other: &ResolvedVideoDownload) -> bool
fn eq(&self, other: &ResolvedVideoDownload) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ResolvedVideoDownload
impl StructuralPartialEq for ResolvedVideoDownload
Auto Trait Implementations§
impl Freeze for ResolvedVideoDownload
impl RefUnwindSafe for ResolvedVideoDownload
impl Send for ResolvedVideoDownload
impl Sync for ResolvedVideoDownload
impl Unpin for ResolvedVideoDownload
impl UnsafeUnpin for ResolvedVideoDownload
impl UnwindSafe for ResolvedVideoDownload
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
Checks if this value is equivalent to the given key. Read more
§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.§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
Checks if this value is equivalent to the given key. Read more