pub struct ChangeOriginProbe<T> { /* private fields */ }Expand description
Records values written through a Binding together with their ChangeOrigin.
Implementations§
Source§impl<T> ChangeOriginProbe<T>
impl<T> ChangeOriginProbe<T>
Source§impl<T: 'static> ChangeOriginProbe<T>
impl<T: 'static> ChangeOriginProbe<T>
Sourcepub fn binding(&self, read: ReadSignal<T>) -> Binding<T>
pub fn binding(&self, read: ReadSignal<T>) -> Binding<T>
Creates a binding whose writes are recorded by this probe.
Sourcepub fn binding_with_commit(
&self,
read: ReadSignal<T>,
on_commit: Callback<()>,
) -> Binding<T>
pub fn binding_with_commit( &self, read: ReadSignal<T>, on_commit: Callback<()>, ) -> Binding<T>
Creates a binding whose writes are recorded and whose commits use on_commit.
Source§impl<T: Debug + PartialEq> ChangeOriginProbe<T>
impl<T: Debug + PartialEq> ChangeOriginProbe<T>
Sourcepub fn assert_writes(&self, expected: &[(T, ChangeOrigin)])
pub fn assert_writes(&self, expected: &[(T, ChangeOrigin)])
Asserts the complete ordered sequence of value and origin pairs.
§Panics
Panics when the observed writes differ from expected.
Trait Implementations§
Source§impl<T> Clone for ChangeOriginProbe<T>
impl<T> Clone for ChangeOriginProbe<T>
Source§impl<T: Debug> Debug for ChangeOriginProbe<T>
impl<T: Debug> Debug for ChangeOriginProbe<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ChangeOriginProbe<T>
impl<T> !Send for ChangeOriginProbe<T>
impl<T> !Sync for ChangeOriginProbe<T>
impl<T> !UnwindSafe for ChangeOriginProbe<T>
impl<T> Freeze for ChangeOriginProbe<T>
impl<T> Unpin for ChangeOriginProbe<T>
impl<T> UnsafeUnpin for ChangeOriginProbe<T>
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.