Enum dioxus_query::QueryResult
source ยท pub enum QueryResult<T, E> {
Ok(T),
Err(E),
Loading(Option<T>),
}Variantsยง
Ok(T)
Contains a successful state
Err(E)
Contains an errored state
Loading(Option<T>)
Contains a loading state that may or not have a cached result
Implementationsยง
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> Default for QueryResult<T, E>
impl<T, E> Default for QueryResult<T, E>
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