pub struct Constructor<T, C> { /* private fields */ }Expand description
Pairs constructors with their configurations.
This is useful for type-erasing an AudioNode.
Implementations§
Source§impl<T: AudioNode> Constructor<T, T::Configuration>
impl<T: AudioNode> Constructor<T, T::Configuration>
pub fn new(constructor: T, configuration: Option<T::Configuration>) -> Self
Trait Implementations§
Source§impl<T: AudioNode> DynAudioNode for Constructor<T, T::Configuration>
impl<T: AudioNode> DynAudioNode for Constructor<T, T::Configuration>
Source§fn info(&self) -> AudioNodeInfo
fn info(&self) -> AudioNodeInfo
Get information about this node. Read more
Source§fn construct_processor(
&self,
cx: ConstructProcessorContext<'_>,
) -> Box<dyn AudioNodeProcessor>
fn construct_processor( &self, cx: ConstructProcessorContext<'_>, ) -> Box<dyn AudioNodeProcessor>
Construct a realtime processor for this node. Read more
Source§fn update(&mut self, cx: UpdateContext<'_>)
fn update(&mut self, cx: UpdateContext<'_>)
If
AudioNodeInfo::call_update_method was set to true, then the Firewheel
context will call this method on every update cycle. Read moreAuto Trait Implementations§
impl<T, C> Freeze for Constructor<T, C>
impl<T, C> RefUnwindSafe for Constructor<T, C>where
T: RefUnwindSafe,
C: RefUnwindSafe,
impl<T, C> Send for Constructor<T, C>
impl<T, C> Sync for Constructor<T, C>
impl<T, C> Unpin for Constructor<T, C>
impl<T, C> UnwindSafe for Constructor<T, C>where
T: UnwindSafe,
C: UnwindSafe,
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.