pub enum DesktopTextError {
Settings {
source: LogicEntity,
error: TextError,
},
Engine {
source: LogicEntity,
error: TextError,
},
Prepared {
source: LogicEntity,
error: PreparedTextError,
},
Batch {
source: LogicEntity,
error: GlyphError,
},
BatchSizeOverflow,
Allocation {
requested_bytes: usize,
},
InvalidDrawPlan,
}Expand description
A managed label failed desktop preparation after a valid CPU frame.
No partial surface frame is presented. Accepted earlier run updates or newly cached glyphs may remain; this is not rollback of CPU state or GPU uploads.
Variants§
Settings
Font settings or a DPI-specific CPU line could not be prepared.
Fields
source: LogicEntityLabel requesting the font.
Engine
Engine rejected an atlas, glyph raster, run update or device resource.
Fields
source: LogicEntityLabel whose preparation failed.
Prepared
Engine rejected retained CPU layout or its atlas/run preparation.
Fields
source: LogicEntityLabel whose prepared-line handoff failed.
error: PreparedTextErrorExact font/style provenance or underlying atlas/run failure.
Batch
Engine rejected a grouped snapshot of adjacent labels.
Fields
source: LogicEntityFirst label in the group (the underlying error may involve another).
error: GlyphErrorExact glyph, allocation or batch-budget failure.
BatchSizeOverflow
Group size or derived byte limits cannot be represented.
Allocation
Bounded cache metadata could not be allocated.
InvalidDrawPlan
The published draw plan and prepared cache disagree.
Trait Implementations§
Source§impl Debug for DesktopTextError
impl Debug for DesktopTextError
Source§impl Display for DesktopTextError
impl Display for DesktopTextError
Source§impl Error for DesktopTextError
impl Error for DesktopTextError
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 DesktopTextError
impl RefUnwindSafe for DesktopTextError
impl Send for DesktopTextError
impl Sync for DesktopTextError
impl Unpin for DesktopTextError
impl UnsafeUnpin for DesktopTextError
impl UnwindSafe for DesktopTextError
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.