#[non_exhaustive]pub enum PresentationTestFault {
DetachReattach,
Lost,
Outdated,
ZeroExtentRoundTrip,
}Expand description
Presentation failure injected on the event-loop thread by native tests.
Faults are queued by logical window and run at the next safe host boundary; they never execute synchronously in the caller.
§Examples
use ailloli_ui_winit::PresentationTestFault;
assert_ne!(PresentationTestFault::Lost, PresentationTestFault::Outdated);Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DetachReattach
Detach and immediately reattach the native presentation.
Lost
Exercise the recovery path used after SurfaceError::Lost.
Outdated
Exercise the recovery path used after SurfaceError::Outdated.
ZeroExtentRoundTrip
Exercise a dormant zero extent followed by a non-zero surface apply.
This fault is injected on the event-loop thread without asking the
compositor to create a physically zero-sized native window. It covers
the same provider-neutral resize/lifecycle path as a winit Resized
callback and waits for the restored extent to be configured.
Trait Implementations§
Source§impl Clone for PresentationTestFault
impl Clone for PresentationTestFault
Source§fn clone(&self) -> PresentationTestFault
fn clone(&self) -> PresentationTestFault
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PresentationTestFault
impl Debug for PresentationTestFault
Source§impl PartialEq for PresentationTestFault
impl PartialEq for PresentationTestFault
impl Copy for PresentationTestFault
impl Eq for PresentationTestFault
impl StructuralPartialEq for PresentationTestFault
Auto Trait Implementations§
impl Freeze for PresentationTestFault
impl RefUnwindSafe for PresentationTestFault
impl Send for PresentationTestFault
impl Sync for PresentationTestFault
impl Unpin for PresentationTestFault
impl UnwindSafe for PresentationTestFault
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more