pub struct UseAsyncState<T, E> {
pub loading: bool,
pub data: Option<T>,
pub error: Option<E>,
}Expand description
State for an async future.
Fields§
§loading: bool§data: Option<T>§error: Option<E>Trait Implementations§
impl<T: Eq, E: Eq> Eq for UseAsyncState<T, E>
impl<T: PartialEq, E: PartialEq> StructuralPartialEq for UseAsyncState<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for UseAsyncState<T, E>
impl<T, E> RefUnwindSafe for UseAsyncState<T, E>
impl<T, E> Send for UseAsyncState<T, E>
impl<T, E> Sync for UseAsyncState<T, E>
impl<T, E> Unpin for UseAsyncState<T, E>
impl<T, E> UnsafeUnpin for UseAsyncState<T, E>
impl<T, E> UnwindSafe for UseAsyncState<T, E>
Blanket Implementations§
impl<Token, Builder, How> AllPropsFor<Builder, How> for Tokenwhere
Builder: Buildable<Token>,
<Builder as Buildable<Token>>::WrappedToken: HasAllProps<<Builder as Buildable<Token>>::Output, How>,
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> HasAllProps<(), T> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
Source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self to a value of a Properties struct.Source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
Source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self to a value of a Properties struct.