pub trait BindCallback {
    type Event;

    // Required method
    fn bind<'a>(
        &mut self,
        cx: Scope<'a>,
        callback: impl FnMut(&Self::Event) + Sendable + 'a
    );
}

Required Associated Types§

Required Methods§

source

fn bind<'a>( &mut self, cx: Scope<'a>, callback: impl FnMut(&Self::Event) + Sendable + 'a )

Implementations on Foreign Types§

source§

impl<T: SendSync> BindCallback for Option<EventSignal<T>>

§

type Event = T

source§

fn bind<'a>( &mut self, cx: Scope<'a>, callback: impl FnMut(&Self::Event) + Sendable + 'a )

Implementors§