pub enum AsyncProgressState<V: View> {
Pending(f32),
Error(String),
Available(V),
}
Expand description
An enum to be returned by the poll_ready
callback, with additional information about the creation progress.
Indicates a not completed creation, which is still ongoing. Also reports the progress made as float value between 0 and 1.
Indicates a not completed creation, which cannot proceed further. Contains an error message to be displayed for the user.
Indicates a completed creation. Contains the new child view.
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
.