pub trait GenericSend<'a, T: ProbablyMutable + 'a>: SendIntType {
Show 18 methods
// Required methods
fn parent_track(&self) -> &Track<'_, T>;
fn index(&self) -> usize;
fn new(track: &'a Track<'_, T>, index: usize) -> Self;
// Provided methods
fn get_info_value(&self, param: impl Into<String>) -> f64 { ... }
fn is_mute(&self) -> bool { ... }
fn phase_flipped(&self) -> bool { ... }
fn is_mono(&self) -> bool { ... }
fn volume(&self) -> Volume { ... }
fn pan(&self) -> Pan { ... }
fn pan_law(&self) -> PanLaw { ... }
fn send_mode(&self) -> SendMode { ... }
fn automation_mode(&self) -> AutomationMode { ... }
fn source_channels(&self) -> Option<SendSourceChannels> { ... }
fn dest_channels(&self) -> Option<SendDestChannels> { ... }
fn midi_properties(&self) -> Option<SendMIDIProps> { ... }
fn dest_track(&'a self) -> Option<Track<'_, Immutable>> { ... }
fn source_track(&'a self) -> Option<Track<'_, Immutable>> { ... }
fn get_envelope(
&'a self,
selector: impl Into<EnvelopeSelector>,
) -> Option<Envelope<'_, Track<'_, T>, T>> { ... }
}
Required Methods§
fn parent_track(&self) -> &Track<'_, T>
fn index(&self) -> usize
fn new(track: &'a Track<'_, T>, index: usize) -> Self
Provided Methods§
Sourcefn get_info_value(&self, param: impl Into<String>) -> f64
fn get_info_value(&self, param: impl Into<String>) -> f64
Core method to retrieve send properties. With probability of 99% you shouldn’t use it.
fn is_mute(&self) -> bool
Sourcefn phase_flipped(&self) -> bool
fn phase_flipped(&self) -> bool
Phase flipped if true.
Sourcefn is_mono(&self) -> bool
fn is_mono(&self) -> bool
Note, that mono parameter is not equal to SendDestChannels and SendSourceChannels is_mono parameters.
fn volume(&self) -> Volume
fn pan(&self) -> Pan
fn pan_law(&self) -> PanLaw
fn send_mode(&self) -> SendMode
fn automation_mode(&self) -> AutomationMode
Sourcefn source_channels(&self) -> Option<SendSourceChannels>
fn source_channels(&self) -> Option<SendSourceChannels>
If None
returned — the audio is off.
Sourcefn dest_channels(&self) -> Option<SendDestChannels>
fn dest_channels(&self) -> Option<SendDestChannels>
Returns None
if source_channels are None
.
Sourcefn midi_properties(&self) -> Option<SendMIDIProps>
fn midi_properties(&self) -> Option<SendMIDIProps>
If None
is returned — MIDI is off.
fn dest_track(&'a self) -> Option<Track<'_, Immutable>>
fn source_track(&'a self) -> Option<Track<'_, Immutable>>
Sourcefn get_envelope(
&'a self,
selector: impl Into<EnvelopeSelector>,
) -> Option<Envelope<'_, Track<'_, T>, T>>
fn get_envelope( &'a self, selector: impl Into<EnvelopeSelector>, ) -> Option<Envelope<'_, Track<'_, T>, T>>
Selector is either EnvelopeChunk or GUID.
In case of send it’s better to use chunk.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.