pub enum VideoCompositorError {
Ffmpeg(Error),
InvalidOutputDimensions {
width: u32,
height: u32,
},
InvalidFrameRate(Rational),
InvalidLayerDimensions {
width: u32,
height: u32,
},
InvalidOpacity(f32),
InvalidInputDimensions {
width: u32,
height: u32,
},
ScaledLayerTooLarge {
width: u32,
height: u32,
},
SourceRemoved,
UnsupportedBuffer(&'static str),
SeekUnsupported,
}Expand description
Errors specific to VideoCompositor.
Variants§
Ffmpeg(Error)
InvalidOutputDimensions
InvalidFrameRate(Rational)
InvalidLayerDimensions
InvalidOpacity(f32)
InvalidInputDimensions
ScaledLayerTooLarge
SourceRemoved
UnsupportedBuffer(&'static str)
SeekUnsupported
Trait Implementations§
Source§impl Debug for VideoCompositorError
impl Debug for VideoCompositorError
Source§impl Display for VideoCompositorError
impl Display for VideoCompositorError
Source§impl Error for VideoCompositorError
impl Error for VideoCompositorError
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<Error> for VideoCompositorError
impl From<Error> for VideoCompositorError
Source§impl From<VideoCompositorError> for Error
impl From<VideoCompositorError> for Error
Source§fn from(source: VideoCompositorError) -> Self
fn from(source: VideoCompositorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VideoCompositorError
impl RefUnwindSafe for VideoCompositorError
impl Send for VideoCompositorError
impl Sync for VideoCompositorError
impl Unpin for VideoCompositorError
impl UnsafeUnpin for VideoCompositorError
impl UnwindSafe for VideoCompositorError
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