#[non_exhaustive]pub enum VideoError {
Open {
path: PathBuf,
source: Error,
},
NothingPlayable,
V4l2 {
what: &'static str,
source: Errno,
},
UnsupportedFormat(u32),
NoFrames,
Drm {
what: &'static str,
source: Error,
},
NoPlane,
}Expand description
Video errors: enumeration, negotiation, streaming, scanout.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open
A device node would not open.
NothingPlayable
No decoder on this board accepts any of the offered assets.
The menu is two codecs wide precisely so this stays unreachable on a Raspberry Pi — a kiosk that ships both files always has a playable one.
V4l2
An ioctl against the decoder failed.
UnsupportedFormat(u32)
The decoder produced a frame format the plane path does not handle.
NoFrames
The stream never yielded a decodable picture.
Drm
A DRM call on the plane path failed.
NoPlane
No video plane on the CRTC supports the decoder’s output format.
Trait Implementations§
Source§impl Debug for VideoError
impl Debug for VideoError
Source§impl Display for VideoError
impl Display for VideoError
Source§impl Error for VideoError
impl Error for VideoError
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 !RefUnwindSafe for VideoError
impl !UnwindSafe for VideoError
impl Freeze for VideoError
impl Send for VideoError
impl Sync for VideoError
impl Unpin for VideoError
impl UnsafeUnpin for VideoError
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