Struct frappe::SignalShared [] [src]

pub struct SignalShared<T>(_, _);

A signal that reads from shared data.

This is produced by stream methods that create a signal. It also contains a reference to it's parent stream to avoid it's deletion.

Methods

impl<T> SignalShared<T>
[src]

Returns the internal shared value.

The returned value can be moved across threads and converted back into a SignalShared. This also drops the reference to it's parent signal, so it can delete the signal chain as a side effect.

Trait Implementations

impl<T: Debug> Debug for SignalShared<T>
[src]

Formats the value using the given formatter.

impl<T: Clone> Clone for SignalShared<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Clone + 'static> Signal<T> for SignalShared<T>
[src]

Sample by value. Read more

Sample by reference. Read more

Maps a signal with the provided function.

Samples the value of this signal every time the trigger stream fires.

Creates a new signal that samples the inner value of a nested signal.

impl<T> From<Arc<RwLock<T>>> for SignalShared<T>
[src]

Performs the conversion.