pub struct UseMutation<Q: MutationCapability> { /* private fields */ }Implementationsยง
Sourceยงimpl<Q: MutationCapability> UseMutation<Q>
impl<Q: MutationCapability> UseMutation<Q>
Sourcepub fn read(&self) -> MutationReader<Q>
pub fn read(&self) -> MutationReader<Q>
Read the Mutation.
This will automatically subscribe. If you want a subscribing method have a look at UseMutation::peek.
Sourcepub fn peek(&self) -> MutationReader<Q>
pub fn peek(&self) -> MutationReader<Q>
Read the Mutation.
This will not automatically subscribe. If you want a subscribing method have a look at UseMutation::read.
Sourcepub async fn mutate_async(&self, keys: Q::Keys) -> MutationReader<Q>
pub async fn mutate_async(&self, keys: Q::Keys) -> MutationReader<Q>
Run this mutation await its result.
For a sync version use UseMutation::mutate.
Sourcepub fn mutate(&self, keys: Q::Keys)
pub fn mutate(&self, keys: Q::Keys)
For an async version use UseMutation::mutate_async.
Trait Implementationsยง
Sourceยงimpl<Q: MutationCapability> Clone for UseMutation<Q>
impl<Q: MutationCapability> Clone for UseMutation<Q>
impl<Q: MutationCapability> Copy for UseMutation<Q>
Auto Trait Implementationsยง
impl<Q> Freeze for UseMutation<Q>
impl<Q> !RefUnwindSafe for UseMutation<Q>
impl<Q> !Send for UseMutation<Q>
impl<Q> !Sync for UseMutation<Q>
impl<Q> Unpin for UseMutation<Q>where
Q: Unpin,
impl<Q> !UnwindSafe for UseMutation<Q>
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.