Enum frappe::SignalAny [] [src]

pub enum SignalAny<T> {
    Constant(SignalConst<T>),
    Shared(SignalShared<T>),
    Dynamic(SignalFn<T>),
    Nested(SignalNested<T>),
}

Generalized signal type.

All other signal subtypes convert to this, so you can say S: Into<SignalAny<T>> on your functions that accept signals. It's also the recommended way of storing signals on structs.

Variants

Methods

impl<T> SignalAny<T>
[src]

Trait Implementations

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

Formats the value using the given formatter.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.