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§
impl<V> Freeze for AsyncProgressState<V>where
V: Freeze,
impl<V> RefUnwindSafe for AsyncProgressState<V>where
V: RefUnwindSafe,
impl<V> Send for AsyncProgressState<V>
impl<V> Sync for AsyncProgressState<V>
impl<V> Unpin for AsyncProgressState<V>where
V: Unpin,
impl<V> UnwindSafe for AsyncProgressState<V>where
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more