pub trait SignalWrite<T> {
    // Required method
    fn id(&self) -> Id;
    // Provided methods
    fn write(&self) -> WriteSignalValue<T>
       where T: 'static { ... }
    fn try_write(&self) -> Option<WriteSignalValue<T>>
       where T: 'static { ... }
}Required Methods§
Provided Methods§
Sourcefn write(&self) -> WriteSignalValue<T>where
    T: 'static,
 
fn write(&self) -> WriteSignalValue<T>where
    T: 'static,
Convert the Signal to WriteSignalValue where it holds a RefCell wrapped
original data of the signal, so that you can borrow_mut() to update the data.
When WriteSignalValue drops, it triggers effect run
Sourcefn try_write(&self) -> Option<WriteSignalValue<T>>where
    T: 'static,
 
fn try_write(&self) -> Option<WriteSignalValue<T>>where
    T: 'static,
If the Signal isn’t disposed,
convert the Signal to WriteSignalValue where it holds a RefCell wrapped
original data of the signal, so that you can borrow_mut() to update the data.
When WriteSignalValue drops, it triggers effect run