pub trait AsCallback: Send + Sync {
    fn get_id(&self) -> CallbackId;
}
Expand description

Trait allowing to bind a generic Callback struct with a CallbackId identifier.

Required Methods§

Implementors§

source§

impl<T> AsCallback for Callback<T>where
    T: ?Sized + WasmClosure + 'static,