Trait perspective_viewer::utils::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.

Object Safety§

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§