#[non_exhaustive]pub enum ProducerError {
Allocate(String),
Unsupported,
}Expand description
Why a producer could not hand over a buffer.
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(String)
The producer could not allocate what was asked for.
Unsupported
The producer can make none of the layouts it was allowed.
Refused rather than allocated outside the set: a buffer in a layout no
plane takes fails at the atomic commit, naming the framebuffer rather
than the layout that made it unscannable (drm-cxx f5bed8f).
Trait Implementations§
Source§impl Debug for ProducerError
impl Debug for ProducerError
Source§impl Display for ProducerError
impl Display for ProducerError
Source§impl Error for ProducerError
impl Error for ProducerError
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()
Auto Trait Implementations§
impl Freeze for ProducerError
impl RefUnwindSafe for ProducerError
impl Send for ProducerError
impl Sync for ProducerError
impl Unpin for ProducerError
impl UnsafeUnpin for ProducerError
impl UnwindSafe for ProducerError
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