#[non_exhaustive]pub enum FbdevError {
NoDevice,
Open {
path: PathBuf,
source: Error,
},
Sysfs {
path: PathBuf,
source: Error,
},
Geometry(FbInfoError),
Map(Error),
TooSmall {
required: usize,
actual: usize,
},
}Expand description
Something went wrong driving /dev/fbN.
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.
NoDevice
No /dev/fb* node exists.
Expected on a modern kernel: fbdev is optional, and where it does exist it is usually DRM’s emulation layer rather than a driver of its own.
Open
The device node could not be opened.
Writing to a framebuffer needs the video group, or root.
Sysfs
A sysfs attribute could not be read.
Geometry(FbInfoError)
The geometry could not be understood.
Map(Error)
The framebuffer could not be mapped into this process.
TooSmall
The mapping is smaller than the reported geometry needs.
Trait Implementations§
Source§impl Debug for FbdevError
impl Debug for FbdevError
Source§impl Display for FbdevError
impl Display for FbdevError
Source§impl Error for FbdevError
impl Error for FbdevError
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<FbInfoError> for FbdevError
impl From<FbInfoError> for FbdevError
Source§fn from(source: FbInfoError) -> Self
fn from(source: FbInfoError) -> Self
Converts to this type from the input type.
Source§impl From<FbdevError> for SurfaceError
impl From<FbdevError> for SurfaceError
Source§fn from(err: FbdevError) -> Self
fn from(err: FbdevError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for FbdevError
impl !UnwindSafe for FbdevError
impl Freeze for FbdevError
impl Send for FbdevError
impl Sync for FbdevError
impl Unpin for FbdevError
impl UnsafeUnpin for FbdevError
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