pub enum DesktopImageError {
Geometry(DesktopScreenError),
MissingAsset {
source: LogicEntity,
image: ImageAssetId,
},
Upload {
source: LogicEntity,
image: ImageAssetId,
error: ImageError,
},
CacheAllocationFailed {
source: LogicEntity,
image: ImageAssetId,
requested_bytes: usize,
},
CacheLimitExceeded {
limit: usize,
},
InvalidDrawPlan,
TextFeatureRequired,
}Expand description
Failure while preparing an immutable image for the desktop renderer.
Preparation happens only after a complete CPU snapshot is published. An earlier successful cache upload may remain cached if later preparation or composition fails; no partially composed frame is presented.
Variants§
Geometry(DesktopScreenError)
Retained screen geometry could not be prepared.
MissingAsset
A published image did not resolve in the owning application’s registry.
Fields
source: LogicEntityManaged visual requesting the unavailable asset.
image: ImageAssetIdImmutable asset identity requested by that visual.
Upload
The renderer rejected the image or its bounded recovery allocation.
Fields
source: LogicEntityManaged visual that first required this uncached image.
image: ImageAssetIdImmutable asset whose preparation failed.
error: ImageErrorConcrete Sim;Engine image failure.
CacheAllocationFailed
The bounded desktop cache could not reserve one metadata record.
Fields
source: LogicEntityManaged visual requiring the new cache entry.
image: ImageAssetIdImmutable asset associated with the reservation.
CacheLimitExceeded
A private cache invariant would exceed the registered asset count.
InvalidDrawPlan
A published draw plan referenced an unavailable image or rectangle run.
TextFeatureRequired
Managed text was enabled for CPU extraction without the text GPU bridge.
Trait Implementations§
Source§impl Debug for DesktopImageError
impl Debug for DesktopImageError
Source§impl Display for DesktopImageError
impl Display for DesktopImageError
Source§impl Error for DesktopImageError
impl Error for DesktopImageError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DesktopImageError
impl RefUnwindSafe for DesktopImageError
impl Send for DesktopImageError
impl Sync for DesktopImageError
impl Unpin for DesktopImageError
impl UnsafeUnpin for DesktopImageError
impl UnwindSafe for DesktopImageError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.