[−][src]Struct seed::prelude::Orders
Methods
impl<Ms: 'static> Orders<Ms>
[src]
pub fn render(&mut self) -> &mut Self
[src]
Schedule web page rerender after model update. It's the default behaviour.
pub fn force_render_now(&mut self) -> &mut Self
[src]
Force web page to rerender immediately after model update.
pub fn skip(&mut self) -> &mut Self
[src]
Don't rerender web page after model update.
pub fn send_msg(&mut self, msg: Ms) -> &mut Self
[src]
Call function update
with the given msg
after model update.
You can call this function more times - messages will be sent in the same order.
pub fn perform_cmd<C>(&mut self, cmd: C) -> &mut Self where
C: Future<Item = Ms, Error = Ms> + 'static,
[src]
C: Future<Item = Ms, Error = Ms> + 'static,
Schedule given future cmd
to be executed after model update.
You can call this function more times - futures will be scheduled in the same order.
Example
fn write_emoticon_after_delay() -> impl Future<Item=Msg, Error=Msg> { TimeoutFuture::new(2_000) .map(|_| Msg::WriteEmoticon) .map_err(|_| Msg::TimeoutError) } orders.perform_cmd(write_emoticon_after_delay());
Trait Implementations
impl<Ms: 'static, OtherMs: 'static> MessageMapper<Ms, OtherMs> for Orders<Ms>
[src]
type SelfWithOtherMs = Orders<OtherMs>
fn map_message(self, f: fn(_: Ms) -> OtherMs) -> Orders<OtherMs>
[src]
impl<Ms> Default for Orders<Ms>
[src]
Auto Trait Implementations
Blanket Implementations
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>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,