Enum cyfs_lib::NDNDataRequestRange
source · pub enum NDNDataRequestRange {
Unparsed(String),
Range(NDNDataRanges),
}
Variants§
Unparsed(String)
Range(NDNDataRanges)
Implementations§
source§impl 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§
source§impl Clone for NDNDataRequestRange
impl Clone for NDNDataRequestRange
source§fn clone(&self) -> NDNDataRequestRange
fn clone(&self) -> NDNDataRequestRange
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 more