pub struct InitializedClient<T, E> { /* private fields */ }Available on crate feature
wasapi only.Expand description
A client that has been initialized with the given type T.
The type must implement the Sample trait to make sure it’s appropriate for use with WASAPI.
Implementations§
Source§impl<T, E> InitializedClient<T, E>where
T: Sample,
impl<T, E> InitializedClient<T, E>where
T: Sample,
Sourcepub fn config(&self) -> ClientConfig
pub fn config(&self) -> ClientConfig
Get the initialized client configuration.
Sourcepub fn render_client(&self) -> Result<RenderClient<T, E>, Error>
pub fn render_client(&self) -> Result<RenderClient<T, E>, Error>
Construct a render client used for writing output into.
Trait Implementations§
impl<T, E> Send for InitializedClient<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for InitializedClient<T, E>
impl<T, E> RefUnwindSafe for InitializedClient<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> !Sync for InitializedClient<T, E>
impl<T, E> Unpin for InitializedClient<T, E>where
T: Unpin,
impl<T, E> UnwindSafe for InitializedClient<T, E>where
E: RefUnwindSafe,
T: 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