pub struct OrdersContainer<Ms, Mdl, INodes>where
Ms: 'static,
Mdl: 'static,
INodes: IntoNodes<Ms>,{ /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<Ms, Mdl, INodes> Orders<Ms> for OrdersContainer<Ms, Mdl, INodes>where
Ms: 'static,
INodes: IntoNodes<Ms> + 'static,
impl<Ms, Mdl, INodes> Orders<Ms> for OrdersContainer<Ms, Mdl, INodes>where
Ms: 'static,
INodes: IntoNodes<Ms> + 'static,
type AppMs = Ms
type Mdl = Mdl
type INodes = INodes
Source§fn proxy<ChildMs: 'static>(
&mut self,
f: impl FnOnce(ChildMs) -> Ms + 'static + Clone,
) -> OrdersProxy<'_, ChildMs, Ms, Mdl, INodes>
fn proxy<ChildMs: 'static>( &mut self, f: impl FnOnce(ChildMs) -> Ms + 'static + Clone, ) -> OrdersProxy<'_, ChildMs, Ms, 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 moreSource§fn stream<MsU: 'static>(
&mut self,
stream: impl Stream<Item = MsU> + 'static,
) -> &mut Self
fn stream<MsU: 'static>( &mut self, stream: impl Stream<Item = MsU> + 'static, ) -> &mut Self
Source§fn stream_with_handle<MsU: 'static>(
&mut self,
stream: impl Stream<Item = MsU> + 'static,
) -> StreamHandle
fn stream_with_handle<MsU: 'static>( &mut self, stream: impl Stream<Item = MsU> + 'static, ) -> StreamHandle
Auto Trait Implementations§
impl<Ms, Mdl, INodes> Freeze for OrdersContainer<Ms, Mdl, INodes>
impl<Ms, Mdl, INodes> !RefUnwindSafe for OrdersContainer<Ms, Mdl, INodes>
impl<Ms, Mdl, INodes> !Send for OrdersContainer<Ms, Mdl, INodes>
impl<Ms, Mdl, INodes> !Sync for OrdersContainer<Ms, Mdl, INodes>
impl<Ms, Mdl, INodes> Unpin for OrdersContainer<Ms, Mdl, INodes>where
Ms: Unpin,
impl<Ms, Mdl, INodes> !UnwindSafe for OrdersContainer<Ms, Mdl, INodes>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more