pub struct CorruptPacket {
pub stage: &'static str,
pub pts: Option<i64>,
pub time_base: (i32, i32),
pub detail: Option<String>,
}Expand description
One observed corruption. Timestamps use the selected stream’s time base.
Fields§
§stage: &'static strPipeline stage reporting damage (may be a frame or demux error).
pts: Option<i64>Best available timestamp, absent when FFmpeg cannot identify it.
time_base: (i32, i32)Numerator and denominator of the timestamp time base.
detail: Option<String>What the decoder said about the damage, when it said anything.
Trait Implementations§
Source§impl Clone for CorruptPacket
impl Clone for CorruptPacket
Source§fn clone(&self) -> CorruptPacket
fn clone(&self) -> CorruptPacket
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 moreSource§impl Debug for CorruptPacket
impl Debug for CorruptPacket
impl Eq for CorruptPacket
Source§impl PartialEq for CorruptPacket
impl PartialEq for CorruptPacket
impl StructuralPartialEq for CorruptPacket
Auto Trait Implementations§
impl Forget for CorruptPacket
impl Freeze for CorruptPacket
impl Move for CorruptPacket
impl RefUnwindSafe for CorruptPacket
impl Send for CorruptPacket
impl Sync for CorruptPacketwhere
RawVecInner: Sync,
impl Unpin for CorruptPacket
impl UnsafeUnpin for CorruptPacket
impl UnwindSafe for CorruptPacket
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more