#[non_exhaustive]pub enum FbInfoError {
Unparsable {
attribute: &'static str,
},
UnsupportedDepth {
bits_per_pixel: u32,
},
EmptyGeometry,
StrideTooNarrow {
stride_bytes: u32,
required: u32,
},
}Expand description
Why a framebuffer’s geometry could not be understood.
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.
Unparsable
A sysfs attribute did not hold what it should.
UnsupportedDepth
The depth is not one this backend can drive.
EmptyGeometry
The framebuffer reported a zero dimension.
StrideTooNarrow
The reported stride cannot hold one row.
Trait Implementations§
Source§impl Clone for FbInfoError
impl Clone for FbInfoError
Source§fn clone(&self) -> FbInfoError
fn clone(&self) -> FbInfoError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FbInfoError
Source§impl Debug for FbInfoError
impl Debug for FbInfoError
Source§impl Display for FbInfoError
impl Display for FbInfoError
impl Eq for FbInfoError
Source§impl Error for FbInfoError
impl Error for FbInfoError
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()
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 PartialEq for FbInfoError
impl PartialEq for FbInfoError
impl StructuralPartialEq for FbInfoError
Auto Trait Implementations§
impl Freeze for FbInfoError
impl RefUnwindSafe for FbInfoError
impl Send for FbInfoError
impl Sync for FbInfoError
impl Unpin for FbInfoError
impl UnsafeUnpin for FbInfoError
impl UnwindSafe for FbInfoError
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