Struct radiorust::blocks::NopSignal

source ·
pub struct NopSignal<T> { /* private fields */ }
Expand description

Same as Nop but concrete implementation for passing Signal<T> (implementing EventHandling)

This block mostly serves documentation purposes but may also be used to (re-)connect multiple Receivers at once, and, additionally to Nop, handle Signal::Events by registering event handlers with EventHandling::on_event.

Implementations§

Creates a block which does nothing but pass data through

Trait Implementations§

Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Register event handler
Wait for closure to return true on event
Obtain reference to SenderConnector
Connect Producer to Consumer

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.