pub struct Recoder;Expand description
RLNC Recoder.
Implementations§
Source§impl Recoder
impl Recoder
Sourcepub fn recode(
coded: &[CodedPacket],
rng: &mut SimpleRng,
) -> Result<CodedPacket, RlncError>
pub fn recode( coded: &[CodedPacket], rng: &mut SimpleRng, ) -> Result<CodedPacket, RlncError>
Produce a new coded packet from a set of already-coded packets.
All input packets must have the same coefficient length and payload length.
Auto Trait Implementations§
impl Freeze for Recoder
impl RefUnwindSafe for Recoder
impl Send for Recoder
impl Sync for Recoder
impl Unpin for Recoder
impl UnsafeUnpin for Recoder
impl UnwindSafe for Recoder
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