#[non_exhaustive]pub struct FeedOutcome {
pub delivered: Vec<u32>,
pub nak: Option<Vec<u8>>,
pub out_of_window: bool,
}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).
out_of_window: boolThe packet was not a 31-bit sequence number (§3.1), or was further ahead of the cumulative ack point than the flow window allows, and was ignored entirely (not recorded, not NAKed): accepting it would let one crafted datagram inflate the loss list. The caller must not stage or deliver it.
Trait Implementations§
Source§impl Clone for FeedOutcome
impl Clone for FeedOutcome
Source§impl Debug for FeedOutcome
impl Debug for FeedOutcome
Source§impl Default for FeedOutcome
impl Default for FeedOutcome
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