Trait leptos::Callable

source ·
pub trait Callable<In, Out = ()>
where In: 'static, Out: 'static,
{ // Required method fn call(&self, input: In) -> Out; }
Expand description

A wrapper trait for calling callbacks.

Required Methods§

source

fn call(&self, input: In) -> Out

calls the callback with the specified argument.

Implementors§

source§

impl<In, Out> Callable<In, Out> for Callback<In, Out>
where In: 'static, Out: 'static,

source§

impl<In, Out> Callable<In, Out> for SyncCallback<In, Out>