Struct raptorq::SourceBlockDecoder
source · [−]pub struct SourceBlockDecoder { /* private fields */ }
Implementations
sourceimpl SourceBlockDecoder
impl SourceBlockDecoder
pub fn new(
source_block_id: u8,
symbol_size: u16,
block_length: u64
) -> SourceBlockDecoder
👎 Deprecated since 1.3.0:
Use the new2() function instead. In version 2.0, that function will replace this one
pub fn new2(
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
sourceimpl Clone for SourceBlockDecoder
impl Clone for SourceBlockDecoder
sourcefn clone(&self) -> SourceBlockDecoder
fn clone(&self) -> SourceBlockDecoder
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
sourceimpl Debug for SourceBlockDecoder
impl Debug for SourceBlockDecoder
sourceimpl PartialEq<SourceBlockDecoder> for SourceBlockDecoder
impl PartialEq<SourceBlockDecoder> for SourceBlockDecoder
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SourceBlockDecoder) -> bool
fn ne(&self, other: &SourceBlockDecoder) -> bool
This method tests for !=
.
impl Eq for SourceBlockDecoder
impl StructuralEq for SourceBlockDecoder
impl StructuralPartialEq for SourceBlockDecoder
Auto Trait Implementations
impl RefUnwindSafe for SourceBlockDecoder
impl Send for SourceBlockDecoder
impl Sync for SourceBlockDecoder
impl Unpin for SourceBlockDecoder
impl UnwindSafe for SourceBlockDecoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more