Enum radiorust::signal::Signal

source ·
pub enum Signal<T> {
    Samples {
        sample_rate: f64,
        chunk: Chunk<T>,
    },
    Event(Arc<dyn Event>),
}
Expand description

Message used by signal processing blocks, which may contain sample data or special events

Variants§

§

Samples

Fields

§sample_rate: f64

Sample rate

§chunk: Chunk<T>

Sample data

Normal data

§

Event(Arc<dyn Event>)

Tuple Fields

§0: Arc<dyn Event>

Dynamic Event

Special event (may be created with Signal::new_event)

Implementations§

Create new Signal::Event

Is message a special event?

Duration in seconds (or 0.0 for events)

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Formats the value using the given formatter. Read more
Return message that indicates disconnection or None if not supported Read more
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
Obtain reference to SenderConnector
Connect Producer to Consumer
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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.