[−][src]Enum vgtk::UpdateAction
An action resulting from a Component::update()
.
Variants
No action is necessary.
Re-render the widget tree.
Run an async task and update again when it completes, passing the message
returned from the Future
to Component::update()
.
You should use UpdateAction::defer()
to construct this, rather than
trying to box up your Future
yourself.
Methods
impl<C: Component> UpdateAction<C>
[src]
pub fn defer(job: impl Future<Output = C::Message> + 'static) -> Self
[src]
Construct a deferred action given a Future
.
Auto Trait Implementations
impl<C> !RefUnwindSafe for UpdateAction<C>
impl<C> !Send for UpdateAction<C>
impl<C> !Sync for UpdateAction<C>
impl<C> Unpin for UpdateAction<C>
impl<C> !UnwindSafe for UpdateAction<C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,