pub struct WriteSignal<T> { /* private fields */ }Expand description
The write half of a signal, from create_signal.
Every write notifies the signal’s subscribers, whether or not the value
changed. Natively the affected effects run before the write returns; in
the browser (feature web on wasm32) they run in a microtask; inside a
batch they run when the batch ends.
Implementations§
Source§impl<T> WriteSignal<T>
impl<T> WriteSignal<T>
Trait Implementations§
Source§impl<T> Clone for WriteSignal<T>
impl<T> Clone for WriteSignal<T>
Source§fn clone(&self) -> WriteSignal<T>
fn clone(&self) -> WriteSignal<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<T> !RefUnwindSafe for WriteSignal<T>
impl<T> !Send for WriteSignal<T>
impl<T> !Sync for WriteSignal<T>
impl<T> !UnwindSafe for WriteSignal<T>
impl<T> Freeze for WriteSignal<T>where
SignalInner<T>: Freeze,
impl<T> Unpin for WriteSignal<T>where
SignalInner<T>: Unpin,
impl<T> UnsafeUnpin for WriteSignal<T>where
SignalInner<T>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more