pub struct AudioNode<'a> { /* private fields */ }Expand description
Protocol object for AudioNode
Implementations§
Source§impl<'a> AudioNode<'a>
impl<'a> AudioNode<'a>
Sourcepub fn builder(
node_id: impl Into<GraphObjectId<'a>>,
context_id: impl Into<GraphObjectId<'a>>,
node_type: impl Into<NodeType<'a>>,
number_of_inputs: f64,
number_of_outputs: f64,
channel_count: f64,
channel_count_mode: impl Into<ChannelCountMode>,
channel_interpretation: impl Into<ChannelInterpretation>,
) -> AudioNodeBuilder<'a>
pub fn builder( node_id: impl Into<GraphObjectId<'a>>, context_id: impl Into<GraphObjectId<'a>>, node_type: impl Into<NodeType<'a>>, number_of_inputs: f64, number_of_outputs: f64, channel_count: f64, channel_count_mode: impl Into<ChannelCountMode>, channel_interpretation: impl Into<ChannelInterpretation>, ) -> AudioNodeBuilder<'a>
Creates a builder for this type with the required parameters:
node_id:context_id:node_type:number_of_inputs:number_of_outputs:channel_count:channel_count_mode:channel_interpretation:
pub fn node_id(&self) -> &GraphObjectId<'a>
pub fn context_id(&self) -> &GraphObjectId<'a>
pub fn node_type(&self) -> &NodeType<'a>
pub fn number_of_inputs(&self) -> f64
pub fn number_of_outputs(&self) -> f64
pub fn channel_count(&self) -> f64
pub fn channel_count_mode(&self) -> &ChannelCountMode
pub fn channel_interpretation(&self) -> &ChannelInterpretation
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for AudioNode<'a>
impl<'de, 'a> Deserialize<'de> for AudioNode<'a>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<'a> Freeze for AudioNode<'a>
impl<'a> RefUnwindSafe for AudioNode<'a>
impl<'a> Send for AudioNode<'a>
impl<'a> Sync for AudioNode<'a>
impl<'a> Unpin for AudioNode<'a>
impl<'a> UnsafeUnpin for AudioNode<'a>
impl<'a> UnwindSafe for AudioNode<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more