Enum dioxus_query::QueryResult
source · pub enum QueryResult<T, E> {
Ok(T),
Err(E),
None,
Loading(Option<T>),
}Variants§
Ok(T)
Contains a successful state
Err(E)
Contains an errored state
None
Contains an empty state
Loading(Option<T>)
Contains a loading state that may or not have a cached result
Trait Implementations§
source§impl<T: Clone, E: Clone> Clone for QueryResult<T, E>
impl<T: Clone, E: Clone> Clone for QueryResult<T, E>
source§fn clone(&self) -> QueryResult<T, E>
fn clone(&self) -> QueryResult<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<QueryResult<T, E>> for Option<T>
impl<T, E> From<QueryResult<T, E>> for Option<T>
source§fn from(value: QueryResult<T, E>) -> Self
fn from(value: QueryResult<T, E>) -> Self
Converts to this type from the input type.
source§impl<T, E> From<Result<T, E>> for QueryResult<T, E>
impl<T, E> From<Result<T, E>> for QueryResult<T, E>
source§impl<T: PartialEq, E: PartialEq> PartialEq<QueryResult<T, E>> for QueryResult<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq<QueryResult<T, E>> for QueryResult<T, E>
source§fn eq(&self, other: &QueryResult<T, E>) -> bool
fn eq(&self, other: &QueryResult<T, E>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T, E> StructuralPartialEq for QueryResult<T, E>
Auto Trait Implementations§
impl<T, E> RefUnwindSafe for QueryResult<T, E>where E: RefUnwindSafe, T: RefUnwindSafe,
impl<T, E> Send for QueryResult<T, E>where E: Send, T: Send,
impl<T, E> Sync for QueryResult<T, E>where E: Sync, T: Sync,
impl<T, E> Unpin for QueryResult<T, E>where E: Unpin, T: Unpin,
impl<T, E> UnwindSafe for QueryResult<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