pub struct OrdersProxy<'a, Ms, AppMs, Mdl, INodes>where
AppMs: 'static,
Mdl: 'static,
INodes: IntoNodes<AppMs>,{ /* private fields */ }
Implementations§
source§impl<'a, Ms, AppMs, Mdl, INodes> OrdersProxy<'a, Ms, AppMs, Mdl, INodes>where
Ms: 'static,
AppMs: 'static,
INodes: IntoNodes<AppMs>,
impl<'a, Ms, AppMs, Mdl, INodes> OrdersProxy<'a, Ms, AppMs, Mdl, INodes>where Ms: 'static, AppMs: 'static, INodes: IntoNodes<AppMs>,
pub fn new( orders_container: &'a mut OrdersContainer<AppMs, Mdl, INodes>, f: impl Fn(Ms) -> AppMs + 'static ) -> Self
Trait Implementations§
source§impl<'a, Ms, AppMs, Mdl, INodes> Orders<Ms> for OrdersProxy<'a, Ms, AppMs, Mdl, INodes>where
Ms: 'static,
AppMs: 'static,
INodes: IntoNodes<AppMs> + 'static,
impl<'a, Ms, AppMs, Mdl, INodes> Orders<Ms> for OrdersProxy<'a, Ms, AppMs, Mdl, INodes>where Ms: 'static, AppMs: 'static, INodes: IntoNodes<AppMs> + 'static,
type AppMs = AppMs
type Mdl = Mdl
type INodes = INodes
source§fn proxy<ChildMs: 'static>(
&mut self,
f: impl FnOnce(ChildMs) -> Ms + 'static + Clone
) -> OrdersProxy<'_, ChildMs, AppMs, Mdl, INodes>
fn proxy<ChildMs: 'static>( &mut self, f: impl FnOnce(ChildMs) -> Ms + 'static + Clone ) -> OrdersProxy<'_, ChildMs, AppMs, Mdl, INodes>
Automatically map message type. It allows you to pass
Orders
into child module. Read moresource§fn render(&mut self) -> &mut Self
fn render(&mut self) -> &mut Self
Schedule web page rerender after model update. It’s the default behaviour.
source§fn force_render_now(&mut self) -> &mut Self
fn force_render_now(&mut self) -> &mut Self
Force web page to rerender immediately after model update.
source§fn notify(&mut self, message: impl Any + Clone) -> &mut Self
fn notify(&mut self, message: impl Any + Clone) -> &mut Self
Notify all subscription handlers that listen for messages with the
message
’s type. Read moresource§fn perform_cmd<MsU: 'static>(
&mut self,
cmd: impl Future<Output = MsU> + 'static
) -> &mut Self
fn perform_cmd<MsU: 'static>( &mut self, cmd: impl Future<Output = MsU> + 'static ) -> &mut Self
source§fn perform_cmd_with_handle<MsU: 'static>(
&mut self,
cmd: impl Future<Output = MsU> + 'static
) -> CmdHandle
fn perform_cmd_with_handle<MsU: 'static>( &mut self, cmd: impl Future<Output = MsU> + 'static ) -> CmdHandle
source§fn clone_app(&self) -> App<Self::AppMs, Self::Mdl, Self::INodes>
fn clone_app(&self) -> App<Self::AppMs, Self::Mdl, Self::INodes>
Get app instance. Cloning is cheap because
App
contains only Rc
fields.source§fn msg_mapper(&self) -> Rc<dyn Fn(Ms) -> Self::AppMs>
fn msg_mapper(&self) -> Rc<dyn Fn(Ms) -> Self::AppMs>
Get the function that maps module’s
Msg
to app’s (root’s) one. Read moresource§fn after_next_render<MsU: 'static>(
&mut self,
callback: impl FnOnce(RenderInfo) -> MsU + 'static
) -> &mut Self
fn after_next_render<MsU: 'static>( &mut self, callback: impl FnOnce(RenderInfo) -> MsU + 'static ) -> &mut Self
Register the callback that will be executed after the next render. Read more
source§fn subscribe<MsU: 'static, SubMs: 'static + Clone>(
&mut self,
handler: impl FnOnce(SubMs) -> MsU + Clone + 'static
) -> &mut Self
fn subscribe<MsU: 'static, SubMs: 'static + Clone>( &mut self, handler: impl FnOnce(SubMs) -> MsU + Clone + 'static ) -> &mut Self
Subscribe for messages with the
handler
s input type. Read moresource§fn subscribe_with_handle<MsU: 'static, SubMs: 'static + Clone>(
&mut self,
handler: impl FnOnce(SubMs) -> MsU + Clone + 'static
) -> SubHandle
fn subscribe_with_handle<MsU: 'static, SubMs: 'static + Clone>( &mut self, handler: impl FnOnce(SubMs) -> MsU + Clone + 'static ) -> SubHandle
Subscribe for messages with the
handler
s input type. Read more