pub struct StandardRangeDownload;Expand description
Default range download protocol.
It sets Range and Accept headers and reads total size from
Content-Length.
Trait Implementations§
Source§impl BreakpointDownload for StandardRangeDownload
impl BreakpointDownload for StandardRangeDownload
Source§fn total_size_hint(&self, _task: &TransferTask) -> Option<u64>
fn total_size_hint(&self, _task: &TransferTask) -> Option<u64>
Returns known remote total size and skips the HEAD prepare request when
present. Read more
Source§fn head_url(&self, task: &TransferTask) -> String
fn head_url(&self, task: &TransferTask) -> String
Returns full URL for HEAD request. Read more
Source§fn range_url(&self, task: &TransferTask) -> String
fn range_url(&self, task: &TransferTask) -> String
Returns full URL for range GET requests. Read more
Source§fn merge_head_headers(&self, _ctx: DownloadHeadCtx<'_>) -> Result<(), MeowError>
fn merge_head_headers(&self, _ctx: DownloadHeadCtx<'_>) -> Result<(), MeowError>
Merges protocol-specific headers before sending HEAD request. Read more
Source§fn merge_range_get_headers(
&self,
ctx: DownloadRangeGetCtx<'_>,
) -> Result<(), MeowError>
fn merge_range_get_headers( &self, ctx: DownloadRangeGetCtx<'_>, ) -> Result<(), MeowError>
Merges protocol-specific headers before range GET request. Read more
Source§impl Clone for StandardRangeDownload
impl Clone for StandardRangeDownload
Source§fn clone(&self) -> StandardRangeDownload
fn clone(&self) -> StandardRangeDownload
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 StandardRangeDownload
impl Debug for StandardRangeDownload
Source§impl Default for StandardRangeDownload
impl Default for StandardRangeDownload
Source§fn default() -> StandardRangeDownload
fn default() -> StandardRangeDownload
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StandardRangeDownload
impl RefUnwindSafe for StandardRangeDownload
impl Send for StandardRangeDownload
impl Sync for StandardRangeDownload
impl Unpin for StandardRangeDownload
impl UnsafeUnpin for StandardRangeDownload
impl UnwindSafe for StandardRangeDownload
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