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> 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> 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>
Converts
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>
Converts
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