Struct raptorq::SourceBlockDecoder
source · pub struct SourceBlockDecoder { /* private fields */ }
Implementations§
source§impl SourceBlockDecoder
impl SourceBlockDecoder
pub fn new( source_block_id: u8, config: &ObjectTransmissionInformation, block_length: u64 ) -> SourceBlockDecoder
pub fn decode<T: IntoIterator<Item = EncodingPacket>>( &mut self, packets: T ) -> Option<Vec<u8>>
Trait Implementations§
source§impl Clone for SourceBlockDecoder
impl Clone for SourceBlockDecoder
source§fn clone(&self) -> SourceBlockDecoder
fn clone(&self) -> SourceBlockDecoder
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 SourceBlockDecoder
impl Debug for SourceBlockDecoder
source§impl PartialEq for SourceBlockDecoder
impl PartialEq for SourceBlockDecoder
source§fn eq(&self, other: &SourceBlockDecoder) -> bool
fn eq(&self, other: &SourceBlockDecoder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SourceBlockDecoder
impl StructuralPartialEq for SourceBlockDecoder
Auto Trait Implementations§
impl Freeze for SourceBlockDecoder
impl RefUnwindSafe for SourceBlockDecoder
impl Send for SourceBlockDecoder
impl Sync for SourceBlockDecoder
impl Unpin for SourceBlockDecoder
impl UnwindSafe for SourceBlockDecoder
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