[][src]Trait savory_core::orders_ext::OrdersExt

pub trait OrdersExt<Ms: 'static>: Orders<Ms> {
    fn stream_every<MsU: 'static>(
        &mut self,
        ms: u32,
        handler: impl FnOnce() -> MsU + Clone + 'static
    ) -> &mut Self { ... }
fn stream_every_with_handle<MsU: 'static>(
        &mut self,
        ms: u32,
        handler: impl FnOnce() -> MsU + Clone + 'static
    ) -> StreamHandle { ... }
fn send(&mut self, msg: Ms) -> &mut Self { ... }
fn cmd<MsU: 'static>(
        &mut self,
        cmd: impl Future<Output = MsU> + 'static
    ) -> &mut Self { ... }
fn cmd_with_handle<MsU: 'static>(
        &mut self,
        cmd: impl Future<Output = MsU> + 'static
    ) -> CmdHandle { ... }
fn send_after<MsU: 'static>(
        &mut self,
        ms: u32,
        handler: impl FnOnce() -> MsU + Clone + 'static
    ) -> &mut Self { ... }
fn send_after_with_handle<MsU: 'static>(
        &mut self,
        ms: u32,
        handler: impl FnOnce() -> MsU + Clone + 'static
    ) -> CmdHandle { ... } }

Provided methods

fn stream_every<MsU: 'static>(
    &mut self,
    ms: u32,
    handler: impl FnOnce() -> MsU + Clone + 'static
) -> &mut Self

fn stream_every_with_handle<MsU: 'static>(
    &mut self,
    ms: u32,
    handler: impl FnOnce() -> MsU + Clone + 'static
) -> StreamHandle

fn send(&mut self, msg: Ms) -> &mut Self

fn cmd<MsU: 'static>(
    &mut self,
    cmd: impl Future<Output = MsU> + 'static
) -> &mut Self

fn cmd_with_handle<MsU: 'static>(
    &mut self,
    cmd: impl Future<Output = MsU> + 'static
) -> CmdHandle

fn send_after<MsU: 'static>(
    &mut self,
    ms: u32,
    handler: impl FnOnce() -> MsU + Clone + 'static
) -> &mut Self

fn send_after_with_handle<MsU: 'static>(
    &mut self,
    ms: u32,
    handler: impl FnOnce() -> MsU + Clone + 'static
) -> CmdHandle

Loading content...

Implementors

impl<T, Ms: 'static> OrdersExt<Ms> for T where
    T: Orders<Ms>, 
[src]

Loading content...