#[non_exhaustive]pub enum AsyncState<T: Clone + PartialEq> {
Idle,
Loading,
Ready(T),
Failed(String),
Cancelled,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
impl<T: PartialEq + Clone + PartialEq> StructuralPartialEq for AsyncState<T>
Auto Trait Implementations§
impl<T> Freeze for AsyncState<T>where
T: Freeze,
impl<T> RefUnwindSafe for AsyncState<T>where
T: RefUnwindSafe,
impl<T> Send for AsyncState<T>where
T: Send,
impl<T> Sync for AsyncState<T>where
T: Sync,
impl<T> Unpin for AsyncState<T>where
T: Unpin,
impl<T> UnsafeUnpin for AsyncState<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for AsyncState<T>where
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