pub struct StandardRangeDownload;Expand description
默认 Range 下载:仅设置 Range / Accept,总长度取自 Content-Length。
Trait Implementations§
Source§impl BreakpointDownload for StandardRangeDownload
impl BreakpointDownload for StandardRangeDownload
Source§fn merge_head_headers(&self, _ctx: DownloadHeadCtx<'_>) -> Result<(), MeowError>
fn merge_head_headers(&self, _ctx: DownloadHeadCtx<'_>) -> Result<(), MeowError>
在发送 HEAD 之前,将本协议需要的专用请求头合并进
base。 Read moreSource§fn merge_range_get_headers(
&self,
ctx: DownloadRangeGetCtx<'_>,
) -> Result<(), MeowError>
fn merge_range_get_headers( &self, ctx: DownloadRangeGetCtx<'_>, ) -> Result<(), MeowError>
在发送 带 Range 的分片 GET 之前,将本协议需要的专用请求头合并进
base。 Read moreSource§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