[−][src]Struct seed::prelude::Update
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]
F: Future<Item = (), Error = ()> + 'static,
pub fn with_future_msg<F>(future: F) -> Self where
F: Future<Item = Ms, Error = Ms> + 'static,
[src]
F: Future<Item = Ms, Error = Ms> + 'static,
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]
Ms: 'static,
Ms2: 'static,
F: Fn(Ms) -> Ms2 + 'static,
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]
fn from(should_render: ShouldRender) -> Self
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,