#[non_exhaustive]pub enum DumbError {
InvalidConfig {
reason: &'static str,
},
UnsupportedFormat {
fourcc: u32,
},
TooLarge {
what: &'static str,
},
Io(Errno),
}Expand description
Errors from dumb-buffer allocation and framebuffer registration.
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.
InvalidConfig
Zero or out-of-range dimensions, a zero format or bpp, or a FourCC
the drm crate does not recognize.
errc::invalid_argument.
UnsupportedFormat
The FourCC is not one Buffer::create_planar
recognizes. errc::not_supported.
Callers can fall back to Buffer::create for
single-plane formats.
TooLarge
A size computation would not fit the kernel’s 32-bit field.
errc::value_too_large.
Io(Errno)
An ioctl or mmap failed.
Trait Implementations§
Source§impl Error for DumbError
impl Error for DumbError
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 DumbError
impl RefUnwindSafe for DumbError
impl Send for DumbError
impl Sync for DumbError
impl Unpin for DumbError
impl UnsafeUnpin for DumbError
impl UnwindSafe for DumbError
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