pub struct BreakpointDownloadHttpConfig {
pub range_accept: String,
}Expand description
断点下载中与 HTTP 请求相关的可配置项(Range GET 的 Accept、HEAD 行为等),通常放在
TransferTask 上由调用方传入;未设置时由 crate::meow_config::MeowConfig 在入队时补齐。
Fields§
§range_accept: String分片 GET(带 Range)使用的 Accept 头。
Trait Implementations§
Source§impl Clone for BreakpointDownloadHttpConfig
impl Clone for BreakpointDownloadHttpConfig
Source§fn clone(&self) -> BreakpointDownloadHttpConfig
fn clone(&self) -> BreakpointDownloadHttpConfig
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 BreakpointDownloadHttpConfig
impl Debug for BreakpointDownloadHttpConfig
Source§impl PartialEq for BreakpointDownloadHttpConfig
impl PartialEq for BreakpointDownloadHttpConfig
Source§fn eq(&self, other: &BreakpointDownloadHttpConfig) -> bool
fn eq(&self, other: &BreakpointDownloadHttpConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BreakpointDownloadHttpConfig
impl StructuralPartialEq for BreakpointDownloadHttpConfig
Auto Trait Implementations§
impl Freeze for BreakpointDownloadHttpConfig
impl RefUnwindSafe for BreakpointDownloadHttpConfig
impl Send for BreakpointDownloadHttpConfig
impl Sync for BreakpointDownloadHttpConfig
impl Unpin for BreakpointDownloadHttpConfig
impl UnsafeUnpin for BreakpointDownloadHttpConfig
impl UnwindSafe for BreakpointDownloadHttpConfig
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