pub struct RangeRequest {
pub start: u64,
pub end: u64,
}Expand description
Range request for partial downloads
Fields§
§start: u64Start byte
end: u64End byte (inclusive)
Implementations§
Source§impl RangeRequest
impl RangeRequest
Sourcepub fn header_value(&self) -> String
pub fn header_value(&self) -> String
Get the range header value
Sourcepub fn content_length(&self) -> u64
pub fn content_length(&self) -> u64
Get the expected content length
Trait Implementations§
Source§impl Clone for RangeRequest
impl Clone for RangeRequest
Source§fn clone(&self) -> RangeRequest
fn clone(&self) -> RangeRequest
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 moreAuto Trait Implementations§
impl Freeze for RangeRequest
impl RefUnwindSafe for RangeRequest
impl Send for RangeRequest
impl Sync for RangeRequest
impl Unpin for RangeRequest
impl UnwindSafe for RangeRequest
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