pub enum PacerError {
InvalidTimeBase {
numerator: i32,
denominator: i32,
},
TimestampDeltaOverflow {
pts: i64,
first_pts: i64,
},
}Expand description
Errors specific to Pacer.
Variants§
InvalidTimeBase
time_base came from
crate::elements::FileDemuxer::stream_time_base/an encoder’s own
time base — i.e. from a demuxed file or an otherwise externally
supplied stream, not a value this crate controls. A malformed or
unusual stream can legitimately have an invalid one.
TimestampDeltaOverflow
pts is external input too (see PacerError::InvalidTimeBase) —
an adversarial or corrupt jump this far from this pacer’s own
first_pts overflows the subtraction used to compute how long to
wait, leaving nothing sane to pace against.
Trait Implementations§
Source§impl Debug for PacerError
impl Debug for PacerError
Source§impl Display for PacerError
impl Display for PacerError
Source§impl Error for PacerError
impl Error for PacerError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PacerError> for Error
impl From<PacerError> for Error
Source§fn from(source: PacerError) -> Self
fn from(source: PacerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacerError
impl RefUnwindSafe for PacerError
impl Send for PacerError
impl Sync for PacerError
impl Unpin for PacerError
impl UnsafeUnpin for PacerError
impl UnwindSafe for PacerError
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