pub struct Client { /* private fields */ }Available on crate feature
wasapi only.Expand description
An audio client.
Implementations§
Source§impl Client
impl Client
Sourcepub fn default_client_config(&self) -> Result<ClientConfig, Error>
pub fn default_client_config(&self) -> Result<ClientConfig, Error>
Get the default client configuration.
Sourcepub fn initialize<T>(
&self,
config: ClientConfig,
) -> Result<InitializedClient<T, Event>, Error>where
T: Sample,
pub fn initialize<T>(
&self,
config: ClientConfig,
) -> Result<InitializedClient<T, Event>, Error>where
T: Sample,
Try to initialize the client with the given configuration.
Sourcepub fn initialize_async<T>(
&self,
config: ClientConfig,
) -> Result<InitializedClient<T, AsyncEvent>, Error>where
T: Sample,
Available on crate feature events-driver only.
pub fn initialize_async<T>(
&self,
config: ClientConfig,
) -> Result<InitializedClient<T, AsyncEvent>, Error>where
T: Sample,
events-driver only.Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl !Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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