#[non_exhaustive]pub enum GuiError {
WidgetNotFound(u64),
InvalidParentChild {
parent: u64,
child: u64,
},
UnsupportedWidget(&'static str),
UnsupportedCapability(String),
Backend(String),
ResourceExhausted {
operation: &'static str,
code: Option<u32>,
},
InvalidNumericInput,
InvalidLayoutGeometry,
UnsupportedLayoutMode(&'static str),
Property(PropertyError),
}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.
WidgetNotFound(u64)
InvalidParentChild
UnsupportedWidget(&'static str)
UnsupportedCapability(String)
The backend does not implement the requested capability yet (for example a native accessibility bridge). The payload names the capability; callers should degrade gracefully rather than treat this as a programming error.
Backend(String)
ResourceExhausted
The OS or backend refused an allocation due to resource pressure (e.g. GDI handles, window limits, canvas size limits).
InvalidNumericInput
Invalid numeric input encountered in layout calculations or constraints (NaN, infinite).
InvalidLayoutGeometry
Invalid layout geometry (negative dimensions where forbidden, etc.).
UnsupportedLayoutMode(&'static str)
Unsupported layout mode or feature.
Property(PropertyError)
A property model rejected an operation (unknown node, read-only property, incompatible value, stale change token, …).
Implementations§
Trait Implementations§
impl Eq for GuiError
Source§impl Error for GuiError
impl Error for GuiError
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<PropertyError> for GuiError
impl From<PropertyError> for GuiError
Source§fn from(error: PropertyError) -> Self
fn from(error: PropertyError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for GuiError
Auto Trait Implementations§
impl Forget for GuiError
impl Freeze for GuiError
impl Move for GuiError
impl RefUnwindSafe for GuiError
impl Send for GuiError
impl Sync for GuiErrorwhere
RawVecInner: Sync,
impl Unpin for GuiError
impl UnsafeUnpin for GuiError
impl UnwindSafe for GuiError
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