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.

Variants

Available(V)

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.

Error(String)

Loading of the view failed with the given error.

Pending

The view is not available yet, try again later.

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.