[][src]Trait yew_state::Handle

pub trait Handle {
    type Handler: Handler;
    fn set_local_state(&mut self, state: Rc<<Self::Handler as Handler>::Model>);
fn set_local_callback(
        &mut self,
        callback: Callback<Rc<dyn Fn(&mut <Self::Handler as Handler>::Model)>>,
        callback_once: Callback<Box<dyn FnOnce(&mut <Self::Handler as Handler>::Model)>>
    );
fn set_local(&mut self, other: &Self); }

Provides mutable access for wrapper component to update

Associated Types

type Handler: Handler

Loading content...

Required methods

fn set_local_state(&mut self, state: Rc<<Self::Handler as Handler>::Model>)

fn set_local_callback(
    &mut self,
    callback: Callback<Rc<dyn Fn(&mut <Self::Handler as Handler>::Model)>>,
    callback_once: Callback<Box<dyn FnOnce(&mut <Self::Handler as Handler>::Model)>>
)

fn set_local(&mut self, other: &Self)

Loading content...

Implementors

Loading content...