Struct dioxus_query::UseMutation
source · pub struct UseMutation<T, E, P> { /* private fields */ }Expand description
Manage a mutation.
Implementations§
source§impl<T: Clone, E: Clone, P> UseMutation<T, E, P>
impl<T: Clone, E: Clone, P> UseMutation<T, E, P>
sourcepub fn result(&self) -> Ref<'_, MutationResult<T, E>>
pub fn result(&self) -> Ref<'_, MutationResult<T, E>>
Get the current result from the query.
sourcepub async fn mutate(&self, arg: P) -> Ref<'_, MutationResult<T, E>>
pub async fn mutate(&self, arg: P) -> Ref<'_, MutationResult<T, E>>
Call the mutation function with a set of arguments.
sourcepub async fn mutate_silent(&self, arg: P) -> Ref<'_, MutationResult<T, E>>
pub async fn mutate_silent(&self, arg: P) -> Ref<'_, MutationResult<T, E>>
Call the mutation function silently with a set of arguments. This will not make the component re run.
Trait Implementations§
Auto Trait Implementations§
impl<T, E, P> !RefUnwindSafe for UseMutation<T, E, P>
impl<T, E, P> !Send for UseMutation<T, E, P>
impl<T, E, P> !Sync for UseMutation<T, E, P>
impl<T, E, P> Unpin for UseMutation<T, E, P>
impl<T, E, P> !UnwindSafe for UseMutation<T, E, P>
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