pub struct OutputTooLarge { /* private fields */ }Available on crate feature
resample only.Expand description
Payload for ResampleError::OutputTooLarge.
The converted frame would be larger than
FrameLimits::max_frame_bytes allows.
Distinct from [SampleCount], which is about a count no AVFrame
can express at all. This one is about a frame FFmpeg would happily
allocate and the caller has said it does not want: the amplification
a hostile source rate buys — one second at a declared 1 Hz becomes
gigabytes at 192 kHz — lands here.
Implementations§
Trait Implementations§
Source§impl Clone for OutputTooLarge
impl Clone for OutputTooLarge
Source§fn clone(&self) -> OutputTooLarge
fn clone(&self) -> OutputTooLarge
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 OutputTooLarge
Source§impl Debug for OutputTooLarge
impl Debug for OutputTooLarge
Source§impl Display for OutputTooLarge
impl Display for OutputTooLarge
impl Eq for OutputTooLarge
Source§impl Error for OutputTooLarge
impl Error for OutputTooLarge
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<OutputTooLarge> for ResampleError
impl From<OutputTooLarge> for ResampleError
Source§fn from(source: OutputTooLarge) -> Self
fn from(source: OutputTooLarge) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OutputTooLarge
impl PartialEq for OutputTooLarge
impl StructuralPartialEq for OutputTooLarge
Auto Trait Implementations§
impl Freeze for OutputTooLarge
impl RefUnwindSafe for OutputTooLarge
impl Send for OutputTooLarge
impl Sync for OutputTooLarge
impl Unpin for OutputTooLarge
impl UnsafeUnpin for OutputTooLarge
impl UnwindSafe for OutputTooLarge
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