pub struct AudioProviderHost<'a> { /* private fields */ }Expand description
Host that loads audio providers through the kernel loader and registers sites.
Implementations§
Source§impl<'a> AudioProviderHost<'a>
impl<'a> AudioProviderHost<'a>
Sourcepub fn new(cx: &'a mut Cx, loaders: &'a LoaderRegistry) -> Self
pub fn new(cx: &'a mut Cx, loaders: &'a LoaderRegistry) -> Self
Builds a provider host over a context and loader registry.
Sourcepub fn with_proof_entry(
self,
provider: Symbol,
entry: AudioProviderEntry,
) -> Self
pub fn with_proof_entry( self, provider: Symbol, entry: AudioProviderEntry, ) -> Self
Adds a proof-only provider entry, builder-style.
Sourcepub fn with_entry(self, provider: Symbol, entry: AudioProviderEntry) -> Self
pub fn with_entry(self, provider: Symbol, entry: AudioProviderEntry) -> Self
Compatibility alias for existing in-process proof loaders.
New proof code should use Self::with_proof_entry. Native provider
discovery still requires declared audio/site exports before this
entry point is called.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for AudioProviderHost<'a>
impl<'a> !UnwindSafe for AudioProviderHost<'a>
impl<'a> Freeze for AudioProviderHost<'a>
impl<'a> Send for AudioProviderHost<'a>
impl<'a> Sync for AudioProviderHost<'a>
impl<'a> Unpin for AudioProviderHost<'a>
impl<'a> UnsafeUnpin for AudioProviderHost<'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