pub enum AsyncState<V: View> {
Available(V),
Error(String),
Pending,
}
Expand description
This enum is used in the ready_poll callback to tell the async view
whether the view is already available, an error occured, or is still pending.
The view of type V
is now available and ready to be owned by the async view
where it will get layouted and drawn instead of the loading animation.
Loading of the view failed with the given error.
The view is not available yet, try again later.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
Calls the given closure and return the result. Read more
Calls the given closure on self
.
Calls the given closure on self
.
Calls the given closure if condition == true
.