pub struct AudioDevice { /* private fields */ }
Expand description
Details of the source.
This is used to provide information about the source.
Implementations§
Source§impl AudioDevice
impl AudioDevice
Sourcepub fn new(source: SourceType) -> Self
pub fn new(source: SourceType) -> Self
Create a new Details instance
pub fn with_name(self, name: impl Into<String>) -> Self
pub fn with_model(self, model: impl Into<String>) -> Self
pub fn with_manufacturer(self, manufacturer: impl Into<String>) -> Self
pub fn with_connectivity(self, connectivity: ConnectionType) -> Self
pub fn with_source(self, source: SourceType) -> Self
pub fn unknown() -> Self
pub fn stream() -> Self
pub fn microphone( name: impl Into<String>, manufacture: impl Into<String>, connectivity: ConnectionType, ) -> Self
pub fn file() -> Self
Trait Implementations§
Source§impl Clone for AudioDevice
impl Clone for AudioDevice
Source§fn clone(&self) -> AudioDevice
fn clone(&self) -> AudioDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioDevice
impl Debug for AudioDevice
Source§impl Default for AudioDevice
impl Default for AudioDevice
Source§fn default() -> AudioDevice
fn default() -> AudioDevice
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AudioDevice
impl RefUnwindSafe for AudioDevice
impl Send for AudioDevice
impl Sync for AudioDevice
impl Unpin for AudioDevice
impl UnwindSafe for AudioDevice
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