Struct rich_sdl2_rust::audio::AudioDeviceProperty
source · pub struct AudioDeviceProperty {
pub sample_freq: u32,
pub format: AudioFormat,
pub channels: u8,
pub samples: u16,
}
Expand description
A property of an audio device.
Fields§
§sample_freq: u32
The sample frequencies of an audio device..
format: AudioFormat
The format of an audio device.
channels: u8
The numbers of channels of an audio device.
samples: u16
The sample rates of an audio device.
Trait Implementations§
source§impl Clone for AudioDeviceProperty
impl Clone for AudioDeviceProperty
source§fn clone(&self) -> AudioDeviceProperty
fn clone(&self) -> AudioDeviceProperty
Returns a copy 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 AudioDeviceProperty
impl Debug for AudioDeviceProperty
source§impl PartialEq for AudioDeviceProperty
impl PartialEq for AudioDeviceProperty
source§fn eq(&self, other: &AudioDeviceProperty) -> bool
fn eq(&self, other: &AudioDeviceProperty) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AudioDeviceProperty
impl Eq for AudioDeviceProperty
impl StructuralPartialEq for AudioDeviceProperty
Auto Trait Implementations§
impl RefUnwindSafe for AudioDeviceProperty
impl Send for AudioDeviceProperty
impl Sync for AudioDeviceProperty
impl Unpin for AudioDeviceProperty
impl UnwindSafe for AudioDeviceProperty
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