#[non_exhaustive]pub enum GbmSourceError {
Allocate(GbmError),
Import(ExternalError),
MultiPlanar {
planes: u32,
},
}Expand description
Why a GBM-backed source could not be built.
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.
Allocate(GbmError)
Opening the GBM device, allocating, or exporting the buffer failed.
Import(ExternalError)
The allocation succeeded but could not be imported as a framebuffer.
MultiPlanar
The driver returned a multi-planar allocation.
Refused rather than importing the first plane and calling it the buffer, which would scan out one channel of a planar YUV frame as if it were the whole image.
Trait Implementations§
Source§impl Debug for GbmSourceError
impl Debug for GbmSourceError
Source§impl Display for GbmSourceError
impl Display for GbmSourceError
Source§impl Error for GbmSourceError
impl Error for GbmSourceError
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<ExternalError> for GbmSourceError
impl From<ExternalError> for GbmSourceError
Source§fn from(source: ExternalError) -> Self
fn from(source: ExternalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GbmSourceError
impl RefUnwindSafe for GbmSourceError
impl Send for GbmSourceError
impl Sync for GbmSourceError
impl Unpin for GbmSourceError
impl UnsafeUnpin for GbmSourceError
impl UnwindSafe for GbmSourceError
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