#[non_exhaustive]pub enum PresentationEvent {
AllowCreation,
Attached,
Suspend,
Unavailable(PresentationUnavailableReason),
Retry,
Destroy,
}Expand description
Input accepted by the pure presentation reducer.
The enum is non-exhaustive. Events carry no native handles and are safe to use in deterministic lifecycle tests.
§Examples
use ailloli_ui_runtime::app::{PresentationEvent, PresentationUnavailableReason};
assert_ne!(PresentationEvent::AllowCreation, PresentationEvent::Destroy);
assert_eq!(PresentationEvent::Unavailable(PresentationUnavailableReason::SurfaceLost), PresentationEvent::Unavailable(PresentationUnavailableReason::SurfaceLost));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.
AllowCreation
Authorize transitioning toward native attachment.
Attached
Report successful native attachment and advance generation.
Suspend
Detach/suspend presentation without destroying the logical window.
Record a non-fatal unavailable state.
Retry
Move an unavailable presentation back to creation-allowed.
Destroy
Enter the terminal destroyed state.
Trait Implementations§
Source§impl Clone for PresentationEvent
impl Clone for PresentationEvent
Source§fn clone(&self) -> PresentationEvent
fn clone(&self) -> PresentationEvent
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 PresentationEvent
impl Debug for PresentationEvent
Source§impl PartialEq for PresentationEvent
impl PartialEq for PresentationEvent
impl Copy for PresentationEvent
impl Eq for PresentationEvent
impl StructuralPartialEq for PresentationEvent
Auto Trait Implementations§
impl Freeze for PresentationEvent
impl RefUnwindSafe for PresentationEvent
impl Send for PresentationEvent
impl Sync for PresentationEvent
impl Unpin for PresentationEvent
impl UnwindSafe for PresentationEvent
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.