pub struct MultiRangeInfo {
pub ranges: Vec<Range<usize>>,
pub boundary: String,
/* private fields */
}Fields§
§ranges: Vec<Range<usize>>§boundary: StringImplementations§
Source§impl MultiRangeInfo
impl MultiRangeInfo
pub fn new(ranges: Vec<Range<usize>>) -> Self
pub fn set_content_type(&mut self, content_type: String)
pub fn set_total_length(&mut self, total_length: usize)
pub fn calculate_multipart_length(&self) -> usize
Trait Implementations§
Source§impl Clone for MultiRangeInfo
impl Clone for MultiRangeInfo
Source§fn clone(&self) -> MultiRangeInfo
fn clone(&self) -> MultiRangeInfo
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 MultiRangeInfo
impl Debug for MultiRangeInfo
Source§impl PartialEq for MultiRangeInfo
impl PartialEq for MultiRangeInfo
impl Eq for MultiRangeInfo
impl StructuralPartialEq for MultiRangeInfo
Auto Trait Implementations§
impl Freeze for MultiRangeInfo
impl RefUnwindSafe for MultiRangeInfo
impl Send for MultiRangeInfo
impl Sync for MultiRangeInfo
impl Unpin for MultiRangeInfo
impl UnwindSafe for MultiRangeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.