#[non_exhaustive]pub enum PresentError {
ShortFrame {
height: u32,
stride: u32,
needed: usize,
got: usize,
},
WouldBlock,
Paint(PaintError),
Build(SceneError),
Commit(CoreError),
Bind(String),
}Expand description
What went wrong presenting a frame.
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.
ShortFrame
The source buffer is shorter than height * stride says it is.
Fields
WouldBlock
Every ring slot is busy. Retry once a flip has completed.
Paint(PaintError)
Painting the frame into a slot failed.
Build(SceneError)
The scene could not build this frame.
Commit(CoreError)
A property write or the commit itself was refused.
Bind(String)
Setting the scene up against this output failed.
Trait Implementations§
Source§impl Debug for PresentError
impl Debug for PresentError
Source§impl Display for PresentError
impl Display for PresentError
Source§impl Error for PresentError
impl Error for PresentError
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<CoreError> for PresentError
impl From<CoreError> for PresentError
Source§impl From<PaintError> for PresentError
impl From<PaintError> for PresentError
Source§fn from(error: PaintError) -> Self
fn from(error: PaintError) -> Self
Converts to this type from the input type.
Source§impl From<SceneError> for PresentError
impl From<SceneError> for PresentError
Source§fn from(source: SceneError) -> Self
fn from(source: SceneError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PresentError
impl RefUnwindSafe for PresentError
impl Send for PresentError
impl Sync for PresentError
impl Unpin for PresentError
impl UnsafeUnpin for PresentError
impl UnwindSafe for PresentError
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