pub enum Verdict {
New,
Duplicate,
}Expand description
What a receiver should do with an arriving counter.
Variants§
New
Not seen before: process it, and the window has been updated to record it.
Duplicate
Seen before, or too far behind to tell.
§4.12.2.2 is emphatic about what happens next for a reliable message: “The receiver SHALL send an acknowledgment message to the sender for each instance of an authenticated, reliable message, including duplicates. The reliability layer SHALL only propagate the first instance of a message to the next higher layer.” So a duplicate is acknowledged and then dropped — never silently ignored, or the sender retransmits until it gives up.
Trait Implementations§
impl Copy for Verdict
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Forget for Verdict
impl Freeze for Verdict
impl Move for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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