#[non_exhaustive]pub enum PopupPortalError {
DuplicateId,
UnknownPopup,
UnknownParent,
ParentPresentationMismatch,
ParentNotOpen,
IdExhausted,
InvalidBounds,
}Expand description
Invalid popup registry operation.
Runtime-handle helpers return these errors and also queue a cloned copy for non-fatal host diagnostics. The enum is non-exhaustive.
§Examples
use ailloli_ui_runtime::popup::PopupPortalError;
assert_eq!(PopupPortalError::UnknownPopup.to_string(), "popup identifier is not registered");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.
DuplicateId
Requested registration ID already exists.
UnknownPopup
Operation addressed an unregistered popup ID.
UnknownParent
A requested parent ID is not registered.
ParentPresentationMismatch
Parent/child owners use different logical window or generation.
ParentNotOpen
A child was opened while its registered parent was closed.
IdExhausted
Checked one-based u64 ID allocation cannot advance.
InvalidBounds
Bounds/anchor contain non-finite edges or negative dimensions.
Trait Implementations§
Source§impl Clone for PopupPortalError
impl Clone for PopupPortalError
Source§fn clone(&self) -> PopupPortalError
fn clone(&self) -> PopupPortalError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PopupPortalError
impl Debug for PopupPortalError
Source§impl Display for PopupPortalError
impl Display for PopupPortalError
Source§impl Error for PopupPortalError
impl Error for PopupPortalError
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 PartialEq for PopupPortalError
impl PartialEq for PopupPortalError
impl Eq for PopupPortalError
impl StructuralPartialEq for PopupPortalError
Auto Trait Implementations§
impl Freeze for PopupPortalError
impl RefUnwindSafe for PopupPortalError
impl Send for PopupPortalError
impl Sync for PopupPortalError
impl Unpin for PopupPortalError
impl UnwindSafe for PopupPortalError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
Source§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.