pub enum FrameComposerError {
InvalidBackground,
InvalidOpacity,
InvalidTint,
InvalidImageRegion,
InvalidWorldImage,
InvalidValueRange {
minimum: f32,
maximum: f32,
},
RendererMismatch {
source: FrameSourceKind,
},
BudgetExceeded {
resource: FrameBudgetResource,
limit: usize,
actual: usize,
},
AllocationFailed {
requested_bytes: usize,
},
Frame(RendererFrameError),
}Expand description
Failure while constructing or presenting a heterogeneous frame.
Variants§
InvalidBackground
The one frame clear color was not normalized linear RGBA.
InvalidOpacity
A target-composition opacity was non-finite or outside 0.0..=1.0.
InvalidTint
An image tint was not normalized linear RGBA.
InvalidImageRegion
An atlas source rectangle did not fit its image.
InvalidWorldImage
A world image rectangle or pseudo-depth was invalid.
InvalidValueRange
Scalar endpoints were invalid or their finite subtraction overflowed.
Fields
RendererMismatch
A retained source belongs to another renderer or recovery generation.
Fields
§
source: FrameSourceKindCategory of the rejected retained source.
BudgetExceeded
A frame-work limit would be exceeded.
Fields
§
resource: FrameBudgetResourceWork category whose limit was exceeded.
AllocationFailed
CPU storage for frame construction could not be reserved.
Frame(RendererFrameError)
Validation, surface acquisition, or GPU-capacity work failed.
Trait Implementations§
Source§impl Clone for FrameComposerError
impl Clone for FrameComposerError
Source§fn clone(&self) -> FrameComposerError
fn clone(&self) -> FrameComposerError
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 FrameComposerError
Source§impl Debug for FrameComposerError
impl Debug for FrameComposerError
Source§impl Display for FrameComposerError
impl Display for FrameComposerError
Source§impl Error for FrameComposerError
impl Error for FrameComposerError
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<RendererFrameError> for FrameComposerError
impl From<RendererFrameError> for FrameComposerError
Source§fn from(error: RendererFrameError) -> Self
fn from(error: RendererFrameError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FrameComposerError
impl PartialEq for FrameComposerError
impl StructuralPartialEq for FrameComposerError
Auto Trait Implementations§
impl Freeze for FrameComposerError
impl RefUnwindSafe for FrameComposerError
impl Send for FrameComposerError
impl Sync for FrameComposerError
impl Unpin for FrameComposerError
impl UnsafeUnpin for FrameComposerError
impl UnwindSafe for FrameComposerError
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