Enum cursive_async_view::AsyncState[][src]

pub enum AsyncState<V: View> {
    Available(V),
    Error(String),
    Pending,
}

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

impl<V> RefUnwindSafe for AsyncState<V> where
    V: RefUnwindSafe

impl<V> Send for AsyncState<V> where
    V: Send

impl<V> Sync for AsyncState<V> where
    V: Sync

impl<V> Unpin for AsyncState<V> where
    V: Unpin

impl<V> UnwindSafe for AsyncState<V> where
    V: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> With for T[src]