Trait RemoteCallable

Source
pub trait RemoteCallable<T> {
    // Required methods
    fn call(&self, ctx: &T);
    fn abort(&self);
}
Expand description

A dyn compatible trait intended to be used with types like Debounce and Throttle.

Required Methods§

Source

fn call(&self, ctx: &T)

Call the function with the provided context.

Source

fn abort(&self)

Abort any pending calls.

Implementors§

Source§

impl<R, T, Fut> RemoteCallable<AppHandle<R>> for Debounce<R, T, Fut>
where R: Runtime, T: Send + 'static, Fut: Future<Output = T> + Send + 'static,

Source§

impl<R, T, Fut> RemoteCallable<AppHandle<R>> for Throttle<R, T, Fut>
where R: Runtime, T: Send + 'static, Fut: Future<Output = T> + Send + 'static,