Struct http_range_header::ParsedRanges
source · pub struct ParsedRanges { /* private fields */ }
Implementations§
source§impl ParsedRanges
impl ParsedRanges
sourcepub fn validate(
&self,
file_size_bytes: u64
) -> Result<Vec<RangeInclusive<u64>>, RangeUnsatisfiableError>
pub fn validate( &self, file_size_bytes: u64 ) -> Result<Vec<RangeInclusive<u64>>, RangeUnsatisfiableError>
Validates a parsed range for a given file-size in bytes.
Errors
If the range is invalid for the the file-size.
Trait Implementations§
source§impl Clone for ParsedRanges
impl Clone for ParsedRanges
source§fn clone(&self) -> ParsedRanges
fn clone(&self) -> ParsedRanges
Returns a copy 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 ParsedRanges
impl Debug for ParsedRanges
source§impl PartialEq<ParsedRanges> for ParsedRanges
impl PartialEq<ParsedRanges> for ParsedRanges
source§fn eq(&self, other: &ParsedRanges) -> bool
fn eq(&self, other: &ParsedRanges) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParsedRanges
impl StructuralEq for ParsedRanges
impl StructuralPartialEq for ParsedRanges
Auto Trait Implementations§
impl RefUnwindSafe for ParsedRanges
impl Send for ParsedRanges
impl Sync for ParsedRanges
impl Unpin for ParsedRanges
impl UnwindSafe for ParsedRanges
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