Enum cyfs_lib::NDNDataRequestRange
source · [−]pub enum NDNDataRequestRange {
Unparsed(String),
Range(NDNDataRanges),
}
Variants
Unparsed(String)
Range(NDNDataRanges)
Implementations
sourceimpl NDNDataRequestRange
impl NDNDataRequestRange
pub fn new_data_range(ranges: Vec<NDNDataRange>) -> Self
pub fn new_range(ranges: Vec<Range<u64>>) -> Self
pub fn new_unparsed(s: impl ToString) -> Self
pub fn encode_string(&self) -> String
pub fn to_display_string(&self) -> String
pub fn convert_to_response(&self, size: u64) -> Option<NDNDataResponseRange>
Trait Implementations
sourceimpl Clone for NDNDataRequestRange
impl Clone for NDNDataRequestRange
sourcefn clone(&self) -> NDNDataRequestRange
fn clone(&self) -> NDNDataRequestRange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for NDNDataRequestRange
impl Send for NDNDataRequestRange
impl Sync for NDNDataRequestRange
impl Unpin for NDNDataRequestRange
impl UnwindSafe for NDNDataRequestRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more