#[non_exhaustive]pub enum UiError {
Backend(String),
Render(String),
Window(String),
Unsupported(String),
Layout(String),
Focus(String),
Clipboard(String),
DragDrop(String),
Other(String),
}Expand description
Errors emitted by the OxiUI stack.
This enum is #[non_exhaustive]: downstream match expressions must include
a catch-all (_ => …) so new variants can be added without a breaking
change.
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.
Backend(String)
A backend (windowing / GPU initialisation) error.
Render(String)
A render-pipeline error.
Window(String)
A window-management error.
Unsupported(String)
The requested feature or backend is not available.
Layout(String)
A layout-engine error (e.g. an unsatisfiable constraint set).
Focus(String)
A focus-management error (e.g. focusing a non-focusable node).
Clipboard(String)
A clipboard access error (e.g. unsupported MIME type, OS denial).
DragDrop(String)
A drag-and-drop protocol error (e.g. rejected payload).
Other(String)
Any other error not covered by the above variants.
Trait Implementations§
Source§impl Error for UiError
impl Error for UiError
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()
Auto Trait Implementations§
impl Freeze for UiError
impl RefUnwindSafe for UiError
impl Send for UiError
impl Sync for UiError
impl Unpin for UiError
impl UnsafeUnpin for UiError
impl UnwindSafe for UiError
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