Struct seed::app::orders::proxy::OrdersProxy

source ·
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>,

source

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,

§

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>

Automatically map message type. It allows you to pass Orders into child module. Read more
source§

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

Force web page to rerender immediately after model update.
source§

fn skip(&mut self) -> &mut Self

Don’t rerender web page after model update.
source§

fn notify(&mut self, message: impl Any + Clone) -> &mut Self

Notify all subscription handlers that listen for messages with the message’s type. Read more
source§

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

Invoke function update with the given msg. Read more
source§

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

Execute cmd and send its output (if it’s Msg) to update function. Read more
source§

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

Execute given cmd and send its output (if it’s Msg) to update function. Read more
source§

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>

Get the function that maps module’s Msg to app’s (root’s) one. Read more
source§

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

Subscribe for messages with the handlers input type. Read more
source§

fn subscribe_with_handle<MsU: 'static, SubMs: 'static + Clone>( &mut self, handler: impl FnOnce(SubMs) -> MsU + Clone + 'static ) -> SubHandle

Subscribe for messages with the handlers input type. Read more
source§

fn stream<MsU: 'static>( &mut self, stream: impl Stream<Item = MsU> + 'static ) -> &mut Self

Stream Msg, Option<Msg> or (). Read more
source§

fn stream_with_handle<MsU: 'static>( &mut self, stream: impl Stream<Item = MsU> + 'static ) -> StreamHandle

Stream Msg, Option<Msg> or (). Read more
source§

fn msg_sender(&self) -> Rc<dyn Fn(Option<Ms>)>

Get the function that invokes your update function. The most common use-case is passing the function into callbacks. Read more
source§

fn clone_base_path(&self) -> Rc<[String]>

Cheap clone base path loaded from element <base href="/base/path/">. Read more

Auto Trait Implementations§

§

impl<'a, Ms, AppMs, Mdl, INodes> !RefUnwindSafe for OrdersProxy<'a, Ms, AppMs, Mdl, INodes>

§

impl<'a, Ms, AppMs, Mdl, INodes> !Send for OrdersProxy<'a, Ms, AppMs, Mdl, INodes>

§

impl<'a, Ms, AppMs, Mdl, INodes> !Sync for OrdersProxy<'a, Ms, AppMs, Mdl, INodes>

§

impl<'a, Ms, AppMs, Mdl, INodes> Unpin for OrdersProxy<'a, Ms, AppMs, Mdl, INodes>

§

impl<'a, Ms, AppMs, Mdl, INodes> !UnwindSafe for OrdersProxy<'a, Ms, AppMs, Mdl, INodes>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V