[][src]Struct seed::prelude::Update

pub struct Update<Ms> { /* fields omitted */ }

Methods

impl<Ms> Update<Ms>[src]

pub fn with_msg(effect_msg: Ms) -> Self[src]

pub fn with_future<F>(future: F) -> Self where
    F: Future<Item = (), Error = ()> + 'static, 
[src]

pub fn with_future_msg<F>(future: F) -> Self where
    F: Future<Item = Ms, Error = Ms> + 'static, 
[src]

pub fn skip(self) -> Self[src]

Modify this Update to skip rendering

pub fn render(self) -> Self[src]

Force rendering for this Update. Cancels skip().

pub fn map<F, Ms2>(self, f: F) -> Update<Ms2> where
    Ms: 'static,
    Ms2: 'static,
    F: Fn(Ms) -> Ms2 + 'static, 
[src]

Apply a function to the message produced by the update effect, if one is present. If the effect is a future, the map function will be called after the future is finished running.

Trait Implementations

impl<Ms> Default for Update<Ms>[src]

impl<Ms> From<ShouldRender> for Update<Ms>[src]

Auto Trait Implementations

impl<Ms> !Send for Update<Ms>

impl<Ms> !Sync for Update<Ms>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]