Trait ScopeTExt

Source
pub trait ScopeTExt<T>
where T: Component,
{ // Required method fn send_message_async<F, U>(&self, f: F) -> Receiver<U> where F: FnOnce(Sender<U>) -> T::Message; }

Required Methods§

Source

fn send_message_async<F, U>(&self, f: F) -> Receiver<U>
where F: FnOnce(Sender<U>) -> T::Message,

Send a message with a callback, then suspend until the callback is invoked.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> ScopeTExt<T> for Scope<T>
where T: Component,

Source§

fn send_message_async<F, U>(&self, f: F) -> Receiver<U>
where F: FnOnce(Sender<U>) -> T::Message,

Send a message with a callback, then suspend until the callback is invoked.

Implementors§