Struct raptorq::SourceBlockEncoder
source · [−]pub struct SourceBlockEncoder { /* private fields */ }
Implementations
sourceimpl SourceBlockEncoder
impl SourceBlockEncoder
pub fn new(
source_block_id: u8,
symbol_size: u16,
data: &[u8]
) -> SourceBlockEncoder
👎 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,
data: &[u8]
) -> SourceBlockEncoder
pub fn with_encoding_plan(
source_block_id: u8,
symbol_size: u16,
data: &[u8],
plan: &SourceBlockEncodingPlan
) -> SourceBlockEncoder
👎 Deprecated since 1.3.0:
Use the with_encoding_plan2() function instead. In version 2.0, that function will replace this one
pub fn with_encoding_plan2(
source_block_id: u8,
config: &ObjectTransmissionInformation,
data: &[u8],
plan: &SourceBlockEncodingPlan
) -> SourceBlockEncoder
pub fn source_packets(&self) -> Vec<EncodingPacket>
pub fn repair_packets(
&self,
start_repair_symbol_id: u32,
packets: u32
) -> Vec<EncodingPacket>
Trait Implementations
sourceimpl Clone for SourceBlockEncoder
impl Clone for SourceBlockEncoder
sourcefn clone(&self) -> SourceBlockEncoder
fn clone(&self) -> SourceBlockEncoder
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 SourceBlockEncoder
impl Debug for SourceBlockEncoder
sourceimpl PartialEq<SourceBlockEncoder> for SourceBlockEncoder
impl PartialEq<SourceBlockEncoder> for SourceBlockEncoder
sourcefn eq(&self, other: &SourceBlockEncoder) -> bool
fn eq(&self, other: &SourceBlockEncoder) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SourceBlockEncoder) -> bool
fn ne(&self, other: &SourceBlockEncoder) -> bool
This method tests for !=
.
impl Eq for SourceBlockEncoder
impl StructuralEq for SourceBlockEncoder
impl StructuralPartialEq for SourceBlockEncoder
Auto Trait Implementations
impl RefUnwindSafe for SourceBlockEncoder
impl Send for SourceBlockEncoder
impl Sync for SourceBlockEncoder
impl Unpin for SourceBlockEncoder
impl UnwindSafe for SourceBlockEncoder
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