pub struct OptimisticMutation<A: 'static, R: 'static, D: 'static> { /* private fields */ }Expand description
Handle returned by use_optimistic. Provides
.fire() that applies an optimistic transform immediately and .data()
that returns the derived view layering local patches over subscription data.
Implementations§
Source§impl<A, R, D> OptimisticMutation<A, R, D>
impl<A, R, D> OptimisticMutation<A, R, D>
Sourcepub fn data_signal(&self) -> Signal<Option<D>>
pub fn data_signal(&self) -> Signal<Option<D>>
Signal accessor for use in RSX.
Auto Trait Implementations§
impl<A, R, D> Freeze for OptimisticMutation<A, R, D>
impl<A, R, D> !RefUnwindSafe for OptimisticMutation<A, R, D>
impl<A, R, D> !Send for OptimisticMutation<A, R, D>
impl<A, R, D> !Sync for OptimisticMutation<A, R, D>
impl<A, R, D> Unpin for OptimisticMutation<A, R, D>where
D: Unpin,
impl<A, R, D> UnsafeUnpin for OptimisticMutation<A, R, D>
impl<A, R, D> !UnwindSafe for OptimisticMutation<A, R, D>
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> 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<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
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.