pub struct Microphone { /* private fields */ }Implementations§
Source§impl Microphone
impl Microphone
pub fn params(&self) -> Option<MicrophoneParams>
pub fn set_enabled(&mut self, enabled: bool) -> bool
pub fn enabled(&self) -> bool
pub fn read_samples( &mut self, samples: &mut [i16], ) -> Result<usize, MicrophoneReadError>
Trait Implementations§
Source§impl Debug for Microphone
impl Debug for Microphone
Source§impl Drop for Microphone
impl Drop for Microphone
Auto Trait Implementations§
impl Freeze for Microphone
impl RefUnwindSafe for Microphone
impl !Send for Microphone
impl !Sync for Microphone
impl Unpin for Microphone
impl UnsafeUnpin for Microphone
impl UnwindSafe for Microphone
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