Struct web_audio_api::context::AudioContextRegistration
source · [−]pub struct AudioContextRegistration { /* private fields */ }
Expand description
Handle of the node::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 ConcreteBaseAudioContext::register
Implementations
sourceimpl AudioContextRegistration
impl AudioContextRegistration
sourcepub fn id(&self) -> &AudioNodeId
pub fn id(&self) -> &AudioNodeId
get the audio node id of the registration
sourcepub fn context(&self) -> &ConcreteBaseAudioContext
pub fn context(&self) -> &ConcreteBaseAudioContext
get the context of the registration
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more