Enum dioxus_query::MutationResult
source · pub enum MutationResult<T, E> {
Ok(T),
Err(E),
Loading(Option<T>),
Pending,
}Expand description
The result of mutation.
Variants§
Ok(T)
Mutation was successful
Err(E)
Mutation erorred
Loading(Option<T>)
Mutation is loading and may or not have a previous result
Pending
Mutation has not been triggered yet
Implementations§
source§impl<T, E> MutationResult<T, E>
impl<T, E> MutationResult<T, E>
Trait Implementations§
source§impl<T: Clone, E: Clone> Clone for MutationResult<T, E>
impl<T: Clone, E: Clone> Clone for MutationResult<T, E>
source§fn clone(&self) -> MutationResult<T, E>
fn clone(&self) -> MutationResult<T, E>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<T, E> From<MutationResult<T, E>> for Option<T>
impl<T, E> From<MutationResult<T, E>> for Option<T>
source§fn from(result: MutationResult<T, E>) -> Self
fn from(result: MutationResult<T, E>) -> Self
Converts to this type from the input type.
source§impl<T, E> From<Result<T, E>> for MutationResult<T, E>
impl<T, E> From<Result<T, E>> for MutationResult<T, E>
source§impl<T: PartialEq, E: PartialEq> PartialEq<MutationResult<T, E>> for MutationResult<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq<MutationResult<T, E>> for MutationResult<T, E>
source§fn eq(&self, other: &MutationResult<T, E>) -> bool
fn eq(&self, other: &MutationResult<T, E>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T, E> StructuralPartialEq for MutationResult<T, E>
Auto Trait Implementations§
impl<T, E> RefUnwindSafe for MutationResult<T, E>where E: RefUnwindSafe, T: RefUnwindSafe,
impl<T, E> Send for MutationResult<T, E>where E: Send, T: Send,
impl<T, E> Sync for MutationResult<T, E>where E: Sync, T: Sync,
impl<T, E> Unpin for MutationResult<T, E>where E: Unpin, T: Unpin,
impl<T, E> UnwindSafe for MutationResult<T, E>where E: UnwindSafe, T: UnwindSafe,
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