pub enum Load<T> {
NotAsked,
Loading,
Ready(T),
Failed(Arc<Error>),
}Expand description
Status of a value that arrives asynchronously (a feature’s State field
fed by a loader or a live push), so “not here yet” is representable as
data instead of requiring a separate suspense mechanism at the read site.
Variants§
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Load<T>
Auto Trait Implementations§
impl<T> Freeze for Load<T>where
T: Freeze,
impl<T> RefUnwindSafe for Load<T>where
T: RefUnwindSafe,
impl<T> Send for Load<T>where
T: Send,
impl<T> Sync for Load<T>where
T: Sync,
impl<T> Unpin for Load<T>where
T: Unpin,
impl<T> UnsafeUnpin for Load<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Load<T>where
T: UnwindSafe,
Blanket Implementations§
impl<M> AllowedSignal<M> for Mwhere
M: 'static,
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