Struct web_audio_api::context::AudioContextRegistration
source · pub struct AudioContextRegistration { /* private fields */ }Expand description
Handle of the AudioNode to its associated BaseAudioContext.
This allows for communication with the render thread and lifetime management.
The only way to construct this object is by calling BaseAudioContext::register
Implementations§
source§impl AudioContextRegistration
impl AudioContextRegistration
sourcepub fn post_message<M: Any + Send + 'static>(&self, msg: M)
pub fn post_message<M: Any + Send + 'static>(&self, msg: M)
Send a message to the corresponding audio processor of this node
The message will be handled by
AudioProcessor::onmessage.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for AudioContextRegistration
impl Send for AudioContextRegistration
impl Sync for AudioContextRegistration
impl Unpin for AudioContextRegistration
impl UnwindSafe for AudioContextRegistration
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