pub struct HTTPRangeSpec {
pub is_suffix_length: bool,
pub start: i64,
pub end: i64,
}Fields§
§is_suffix_length: bool§start: i64§end: i64Implementations§
Source§impl HTTPRangeSpec
impl HTTPRangeSpec
pub fn from_part_sizes( object_size: i64, part_number: usize, part_sizes: impl IntoIterator<Item = i64>, ) -> Option<Self>
pub fn get_offset_length( &self, res_size: i64, ) -> Result<(usize, i64), HTTPRangeError>
pub fn get_length(&self, res_size: i64) -> Result<i64, HTTPRangeError>
Trait Implementations§
Source§impl Clone for HTTPRangeSpec
impl Clone for HTTPRangeSpec
Auto Trait Implementations§
impl Freeze for HTTPRangeSpec
impl RefUnwindSafe for HTTPRangeSpec
impl Send for HTTPRangeSpec
impl Sync for HTTPRangeSpec
impl Unpin for HTTPRangeSpec
impl UnsafeUnpin for HTTPRangeSpec
impl UnwindSafe for HTTPRangeSpec
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