Enum lazy_async_promise::DataState
source · pub enum DataState {
Uninitialized,
UpToDate,
Updating(Progress),
Error(String),
}
Expand description
Represents a processing state.
Variants§
Uninitialized
You can only receive this after taking ownership of the data
UpToDate
Data is complete
Updating(Progress)
Data is not (completely) ready, depending on your implementation, you may be able to get partial results Embedded progress in [0,1)
Error(String)
Some error occurred
Implementations§
Trait Implementations§
source§impl PartialEq<DataState> for DataState
impl PartialEq<DataState> for DataState
impl StructuralPartialEq for DataState
Auto Trait Implementations§
impl RefUnwindSafe for DataState
impl Send for DataState
impl Sync for DataState
impl Unpin for DataState
impl UnwindSafe for DataState
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