#[non_exhaustive]pub struct FeedOutcome {
pub delivered: Vec<u32>,
pub nak: Option<Vec<u8>>,
}Expand description
Outcome of one Receiver::feed_data call.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.delivered: Vec<u32>Sequence numbers that became cumulatively in-order-deliverable as a
result of this packet’s arrival — includes seq itself when it was
the next-expected packet, plus any previously-buffered out-of-order
packets it consequently unblocked.
nak: Option<Vec<u8>>An immediate NAK to send, if this packet’s arrival revealed a new
gap (specs/rules/srt-arq.md rules 4, 14).
Trait Implementations§
Source§impl Clone for FeedOutcome
impl Clone for FeedOutcome
Source§fn clone(&self) -> FeedOutcome
fn clone(&self) -> FeedOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeedOutcome
impl Debug for FeedOutcome
Source§impl Default for FeedOutcome
impl Default for FeedOutcome
Source§fn default() -> FeedOutcome
fn default() -> FeedOutcome
Returns the “default value” for a type. Read more
impl Eq for FeedOutcome
Source§impl PartialEq for FeedOutcome
impl PartialEq for FeedOutcome
impl StructuralPartialEq for FeedOutcome
Auto Trait Implementations§
impl Freeze for FeedOutcome
impl RefUnwindSafe for FeedOutcome
impl Send for FeedOutcome
impl Sync for FeedOutcome
impl Unpin for FeedOutcome
impl UnsafeUnpin for FeedOutcome
impl UnwindSafe for FeedOutcome
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