Struct frappe::SignalConst [] [src]

pub struct SignalConst<T>(pub T);

A signal with constant value.

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Clone + 'static> Signal<T> for SignalConst<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<T> for SignalConst<T>
[src]

Performs the conversion.

impl<T> Deref for SignalConst<T>
[src]

The resulting type after dereferencing

The method called to dereference a value