This is unreleased documentation for Yew Next version.
For up-to-date documentation, see the latest version on docs.rs.

Trait yew::html::SendAsMessage

source ·
pub trait SendAsMessage<COMP: BaseComponent> {
    // Required method
    fn send(self, scope: &Scope<COMP>);
}
Expand description

Defines a message type that can be sent to a component. Used for the return value of closure given to Scope::batch_callback.

Required Methods§

source

fn send(self, scope: &Scope<COMP>)

Sends the message to the given component’s scope. See Scope::batch_callback.

Implementations on Foreign Types§

source§

impl<COMP> SendAsMessage<COMP> for Option<COMP::Message>
where COMP: BaseComponent,

source§

fn send(self, scope: &Scope<COMP>)

source§

impl<COMP> SendAsMessage<COMP> for Vec<COMP::Message>
where COMP: BaseComponent,

source§

fn send(self, scope: &Scope<COMP>)

Implementors§