pub enum DamagedFramePolicy {
Drop,
Forward,
}Expand description
Policy used when packet loss leaves an encoded access unit incomplete.
Strict applications can drop damaged units, while latency-sensitive FPV receivers can forward the bytes that arrived and let the decoder conceal the damage.
Variants§
Drop
Drop access units that contain an RTP sequence gap or incomplete FU.
Forward
Emit the received bytes at the next known access-unit boundary.
Trait Implementations§
Source§impl Clone for DamagedFramePolicy
impl Clone for DamagedFramePolicy
Source§fn clone(&self) -> DamagedFramePolicy
fn clone(&self) -> DamagedFramePolicy
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 moreimpl Copy for DamagedFramePolicy
Source§impl Debug for DamagedFramePolicy
impl Debug for DamagedFramePolicy
Source§impl Default for DamagedFramePolicy
impl Default for DamagedFramePolicy
Source§fn default() -> DamagedFramePolicy
fn default() -> DamagedFramePolicy
Returns the “default value” for a type. Read more
impl Eq for DamagedFramePolicy
Source§impl PartialEq for DamagedFramePolicy
impl PartialEq for DamagedFramePolicy
Source§fn eq(&self, other: &DamagedFramePolicy) -> bool
fn eq(&self, other: &DamagedFramePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DamagedFramePolicy
Auto Trait Implementations§
impl Freeze for DamagedFramePolicy
impl RefUnwindSafe for DamagedFramePolicy
impl Send for DamagedFramePolicy
impl Sync for DamagedFramePolicy
impl Unpin for DamagedFramePolicy
impl UnsafeUnpin for DamagedFramePolicy
impl UnwindSafe for DamagedFramePolicy
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