Struct silkenweb_reactive::signal::WriteSignal[][src]

pub struct WriteSignal<T>(_);

Write changes to a signal.

Implementations

impl<T: 'static> WriteSignal<T>[src]

pub fn set(&self, new_value: T)[src]

Set the inner value of a signal, and update downstream signals.

pub fn replace(&self, f: impl 'static + FnOnce(&T) -> T)[src]

Replace inner value of a signal using f, and update downstream signals.

pub fn mutate(&self, f: impl 'static + FnOnce(&mut T))[src]

Mutate the inner value of a signal using f, and update downstream signals.

Trait Implementations

impl<T> Clone for WriteSignal<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for WriteSignal<T>

impl<T> !Send for WriteSignal<T>

impl<T> !Sync for WriteSignal<T>

impl<T> Unpin for WriteSignal<T>

impl<T> !UnwindSafe for WriteSignal<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.