Enum cyfs_bdt::ndn::ChunkCodecDesc
source · pub enum ChunkCodecDesc {
Unknown,
Stream(Option<u32>, Option<u32>, Option<i32>),
Raptor(Option<u32>, Option<u32>, Option<i32>),
}Variants§
Unknown
Stream(Option<u32>, Option<u32>, Option<i32>)
Raptor(Option<u32>, Option<u32>, Option<i32>)
Implementations§
source§impl ChunkCodecDesc
impl ChunkCodecDesc
pub fn reverse_stream(start: Option<u32>, end: Option<u32>) -> Self
pub fn fill_values(&self, chunk: &ChunkId) -> Self
pub fn unwrap_as_stream(&self) -> (u32, u32, i32)
pub fn support_desc(&self, other: &Self) -> bool
Trait Implementations§
source§impl Clone for ChunkCodecDesc
impl Clone for ChunkCodecDesc
source§fn clone(&self) -> ChunkCodecDesc
fn clone(&self) -> ChunkCodecDesc
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 ChunkCodecDesc
impl Debug for ChunkCodecDesc
source§impl JsonCodec<ChunkCodecDesc> for ChunkCodecDesc
impl JsonCodec<ChunkCodecDesc> for ChunkCodecDesc
fn encode_json(&self) -> Map<String, Value>
fn decode_json(obj: &Map<String, Value>) -> BuckyResult<Self>
fn encode_string(&self) -> String
fn decode_string(value: &str) -> Result<T, BuckyError>
fn decode_value(value: &Value) -> Result<T, BuckyError>
fn encode_value(&self) -> Value
source§impl PartialEq<ChunkCodecDesc> for ChunkCodecDesc
impl PartialEq<ChunkCodecDesc> for ChunkCodecDesc
source§fn eq(&self, other: &ChunkCodecDesc) -> bool
fn eq(&self, other: &ChunkCodecDesc) -> bool
This method tests for
self and other values to be equal, and is used
by ==.