Struct pinwheel::signal::Broadcaster[][src]

pub struct Broadcaster<A> where
    A: Signal
{ /* fields omitted */ }
Expand description

Splits an input Signal into multiple output Signals.

Broadcaster provides .signal(), .signal_cloned(), and .signal_ref() methods which can be used to create multiple signals from a single signal.

This is useful because Signal usually does not implement Clone, so it is necessary to use Broadcaster to “clone” a Signal.

If you are using a Mutable then you don’t need Broadcaster, because Mutable already supports the .signal(), .signal_cloned() and .signal_ref() methods (they are faster than Broadcaster).

Implementations

Create a new Broadcaster

Returns a new Signal which copies values from the input Signal

Returns a new Signal which clones values from the input Signal

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.