pub struct FiniteObjectDecoder { /* private fields */ }Expand description
Bounded assembler for independently reorderable finite RaptorQ objects.
Implementations§
Source§impl FiniteObjectDecoder
impl FiniteObjectDecoder
pub fn new( identity: StreamIdentity, lane: Lane, limits: FiniteObjectLimits, ) -> Result<Self>
pub const fn stats(&self) -> FiniteObjectRecoveryStats
pub fn occupancy(&self) -> usize
Sourcepub fn receive_datagram<E>(
&mut self,
datagram: &[u8],
emit: impl FnMut(&RecoveredRecord) -> Result<(), E>,
) -> Result<(), ReceiveError<E>>
pub fn receive_datagram<E>( &mut self, datagram: &[u8], emit: impl FnMut(&RecoveredRecord) -> Result<(), E>, ) -> Result<(), ReceiveError<E>>
Accepts one carrier-verified datagram and emits a digest-verified record
when its object completes. Callers must uphold crate::CuStreamRx integrity.
Sourcepub fn drain_records<E>(
&mut self,
emit: impl FnMut(&RecoveredRecord) -> Result<(), E>,
) -> Result<(), ReceiveError<E>>
pub fn drain_records<E>( &mut self, emit: impl FnMut(&RecoveredRecord) -> Result<(), E>, ) -> Result<(), ReceiveError<E>>
Retries delivery of records retained after a consumer failure.
Auto Trait Implementations§
impl Freeze for FiniteObjectDecoder
impl RefUnwindSafe for FiniteObjectDecoder
impl Send for FiniteObjectDecoder
impl Sync for FiniteObjectDecoder
impl Unpin for FiniteObjectDecoder
impl UnsafeUnpin for FiniteObjectDecoder
impl UnwindSafe for FiniteObjectDecoder
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
impl<T> GetTypeRegistration for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more