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.

Variants

Pending(f32)

Indicates a not completed creation, which is still ongoing. Also reports the progress made as float value between 0 and 1.

Error(String)

Indicates a not completed creation, which cannot proceed further. Contains an error message to be displayed for the user.

Available(V)

Indicates a completed creation. Contains the new child view.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. 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.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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.