#[non_exhaustive]pub enum DropReason {
TooLate,
GapSkipped,
DropRequested,
}Expand description
Why the scheduler gave a sequence number up.
Carried by every DroppedPacket, so the caller can report what the
viewer lost with the reason it was lost.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooLate
The packet arrived after its play time by more than the too-late threshold (§4.6, rule 19).
GapSkipped
The packet never arrived and the earliest buffered successor reached its play time, so the gap was skipped (§4.6, rule 21).
DropRequested
The peer sent a DROPREQ announcing it will never deliver the range (§3.2.9).
Implementations§
Trait Implementations§
Source§impl Clone for DropReason
impl Clone for DropReason
impl Copy for DropReason
Source§impl Debug for DropReason
impl Debug for DropReason
Source§impl Display for DropReason
impl Display for DropReason
impl Eq for DropReason
Source§impl Hash for DropReason
impl Hash for DropReason
Source§impl PartialEq for DropReason
impl PartialEq for DropReason
Source§impl Serialize for DropReason
Available on crate feature serde only.
impl Serialize for DropReason
Available on crate feature
serde only.impl StructuralPartialEq for DropReason
Auto Trait Implementations§
impl Forget for DropReason
impl Freeze for DropReason
impl Move for DropReason
impl RefUnwindSafe for DropReason
impl Send for DropReason
impl Sync for DropReason
impl Unpin for DropReason
impl UnsafeUnpin for DropReason
impl UnwindSafe for DropReason
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