Struct dioxus_query::CachedResult
source ยท pub struct CachedResult<T, E> { /* private fields */ }Implementationsยง
sourceยงimpl<T, E> CachedResult<T, E>
impl<T, E> CachedResult<T, E>
pub fn value(&self) -> &QueryResult<T, E>
pub fn is_fresh(&self) -> bool
pub fn has_been_cached(&self) -> bool
pub fn has_been_queried(&self) -> bool
Methods from Deref<Target = QueryResult<T, E>>ยง
pub fn is_ok(&self) -> bool
pub fn is_err(&self) -> bool
pub fn is_loading(&self) -> bool
Trait Implementationsยง
sourceยงimpl<T: Clone, E: Clone> Clone for CachedResult<T, E>
impl<T: Clone, E: Clone> Clone for CachedResult<T, E>
sourceยงfn clone(&self) -> CachedResult<T, E>
fn clone(&self) -> CachedResult<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 CachedResult<T, E>
impl<T, E> Default for CachedResult<T, E>
sourceยงimpl<T, E> Deref for CachedResult<T, E>
impl<T, E> Deref for CachedResult<T, E>
sourceยงimpl<T, E> From<CachedResult<T, E>> for Option<T>
impl<T, E> From<CachedResult<T, E>> for Option<T>
sourceยงfn from(result: CachedResult<T, E>) -> Self
fn from(result: CachedResult<T, E>) -> Self
Converts to this type from the input type.
sourceยงimpl<T: PartialEq, E: PartialEq> PartialEq<CachedResult<T, E>> for CachedResult<T, E>
impl<T: PartialEq, E: PartialEq> PartialEq<CachedResult<T, E>> for CachedResult<T, E>
sourceยงfn eq(&self, other: &CachedResult<T, E>) -> bool
fn eq(&self, other: &CachedResult<T, E>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T, E> StructuralPartialEq for CachedResult<T, E>
Auto Trait Implementationsยง
impl<T, E> RefUnwindSafe for CachedResult<T, E>where E: RefUnwindSafe, T: RefUnwindSafe,
impl<T, E> Send for CachedResult<T, E>where E: Send, T: Send,
impl<T, E> Sync for CachedResult<T, E>where E: Sync, T: Sync,
impl<T, E> Unpin for CachedResult<T, E>where E: Unpin, T: Unpin,
impl<T, E> UnwindSafe for CachedResult<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