pub enum FramesError {
Show 14 variants
Empty,
TooManyFrames(usize),
UnsupportedFormat(ColorFormat),
InvalidSurface {
width: u32,
height: u32,
format: ColorFormat,
},
InvalidSequence(FrameSequenceError),
InvalidQuality(FrequencyError),
FrameDuration {
frame: usize,
timescale_hz: u32,
},
FramePixels {
frame: usize,
format: ColorFormat,
},
Write(FrameWriteError),
Document(EditError),
Encode(EncodeError),
Verify(ReadError),
MissingFrames,
Frames(FramesError),
}Variants§
Empty
TooManyFrames(usize)
UnsupportedFormat(ColorFormat)
InvalidSurface
InvalidSequence(FrameSequenceError)
InvalidQuality(FrequencyError)
FrameDuration
FramePixels
Write(FrameWriteError)
Document(EditError)
Encode(EncodeError)
Verify(ReadError)
MissingFrames
Frames(FramesError)
Trait Implementations§
Source§impl Debug for FramesError
impl Debug for FramesError
Source§impl Display for FramesError
impl Display for FramesError
Source§impl Error for FramesError
impl Error for FramesError
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()
Auto Trait Implementations§
impl Freeze for FramesError
impl RefUnwindSafe for FramesError
impl Send for FramesError
impl Sync for FramesError
impl Unpin for FramesError
impl UnsafeUnpin for FramesError
impl UnwindSafe for FramesError
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
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