pub struct FocusExitOrderProbe { /* private fields */ }Expand description
Records the relative order of binding writes, Commits, and Focus Exits.
This optional probe creates a Binding for a registry adapter to drive through its normal
interaction path. Its write callback records the event but deliberately owns no value state;
use ChangeOriginProbe separately when the test also needs to assert values and origins.
Implementations§
Source§impl FocusExitOrderProbe
impl FocusExitOrderProbe
Sourcepub fn binding<T: 'static>(&self, read: ReadSignal<T>) -> Binding<T>
pub fn binding<T: 'static>(&self, read: ReadSignal<T>) -> Binding<T>
Creates a binding that records writes, Commits, and Focus Exits in call order.
Sourcepub fn assert_commit_without_focus_exit(&self)
pub fn assert_commit_without_focus_exit(&self)
Asserts that one Commit occurred without a Focus Exit.
§Panics
Panics when Commit was omitted or repeated, or any write or Focus Exit was observed.
Sourcepub fn assert_write_and_commit_before_focus_exit(&self)
pub fn assert_write_and_commit_before_focus_exit(&self)
Asserts that one synchronous write and Commit were observed before one Focus Exit.
§Panics
Panics when an event was omitted, repeated, or observed out of order.
Trait Implementations§
Source§impl Clone for FocusExitOrderProbe
impl Clone for FocusExitOrderProbe
Source§fn clone(&self) -> FocusExitOrderProbe
fn clone(&self) -> FocusExitOrderProbe
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FocusExitOrderProbe
impl Debug for FocusExitOrderProbe
Source§impl Default for FocusExitOrderProbe
impl Default for FocusExitOrderProbe
Source§fn default() -> FocusExitOrderProbe
fn default() -> FocusExitOrderProbe
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for FocusExitOrderProbe
impl !Send for FocusExitOrderProbe
impl !Sync for FocusExitOrderProbe
impl !UnwindSafe for FocusExitOrderProbe
impl Freeze for FocusExitOrderProbe
impl Unpin for FocusExitOrderProbe
impl UnsafeUnpin for FocusExitOrderProbe
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,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.