AsyncState
enum · ferroui-view · v0.5.0
enum AsyncState<T>
The state of an asynchronous operation: pending until it ends, then its value or the message of its error.
Members
Pending
Pending
The operation has not ended.
Ready
Ready(T)
The operation ended with a value.
Failed
Failed(String)
The operation ended with an error.
is_pending
fn is_pending(self: &Self) -> bool
Whether the operation has not ended.
value
fn value(self: &Self) -> Option<&T>
The value, once the operation ended with one.
error
fn error(self: &Self) -> Option<&str>
The message of the error, once the operation failed.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeIntoValue<T>IntoValue<Option<T>>FromValue<T>FromValue<Option<T>>IntoProp<T, Value>AnyValueEqBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelCloneDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.