#[non_exhaustive]pub enum InitialSequenceNumberPolicy {
Default,
Respect,
IgnoreSuspiciousValues,
Ignore,
}
Expand description
Policy for handling the seq
parameter normally seen in the RTP-Info
header.
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.
Default
Default policy: currently same as IgnoreSuspiciousValues
.
Respect
Always respect the value in the header if present.
IgnoreSuspiciousValues
Ignore 0
and 1
values, which we consider “suspicious”.
Some cameras appear to send these fixed values then a completely different sequence number in the first RTP packet.
- The Hikvision DS-2CD2032-I appears to always send
seq=0
on its metadata stream. - The Tapo C320WS appears to always send
seq=1
in all streams.
Ignore
Always ignore, starting the sequence number from observed RTP packets.
Trait Implementations§
source§impl Clone for InitialSequenceNumberPolicy
impl Clone for InitialSequenceNumberPolicy
source§fn clone(&self) -> InitialSequenceNumberPolicy
fn clone(&self) -> InitialSequenceNumberPolicy
Returns a copy of the value. Read more
1.0.0 · 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 InitialSequenceNumberPolicy
impl Debug for InitialSequenceNumberPolicy
source§impl Default for InitialSequenceNumberPolicy
impl Default for InitialSequenceNumberPolicy
source§fn default() -> InitialSequenceNumberPolicy
fn default() -> InitialSequenceNumberPolicy
Returns the “default value” for a type. Read more
impl Copy for InitialSequenceNumberPolicy
Auto Trait Implementations§
impl Freeze for InitialSequenceNumberPolicy
impl RefUnwindSafe for InitialSequenceNumberPolicy
impl Send for InitialSequenceNumberPolicy
impl Sync for InitialSequenceNumberPolicy
impl Unpin for InitialSequenceNumberPolicy
impl UnwindSafe for InitialSequenceNumberPolicy
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