pub struct AudioEndpoints { /* private fields */ }Expand description
The audio endpoints a device reports, in the order it reported them.
Implementations§
Source§impl AudioEndpoints
impl AudioEndpoints
Sourcepub fn get(&self, id: u8) -> Option<&AudioEndpoint>
pub fn get(&self, id: u8) -> Option<&AudioEndpoint>
The endpoint with the given id.
Sourcepub fn list(&self) -> impl Iterator<Item = &AudioEndpoint>
pub fn list(&self) -> impl Iterator<Item = &AudioEndpoint>
Every endpoint, in the order the device reported them.
Sourcepub fn roots(&self) -> impl Iterator<Item = &AudioEndpoint>
pub fn roots(&self) -> impl Iterator<Item = &AudioEndpoint>
The endpoints with no parent: the roots of the device’s audio tree.
Sourcepub fn first_root_input(&self) -> Option<&AudioEndpoint>
pub fn first_root_input(&self) -> Option<&AudioEndpoint>
The first root that accepts audio.
Sourcepub fn first_root_output(&self) -> Option<&AudioEndpoint>
pub fn first_root_output(&self) -> Option<&AudioEndpoint>
The first root that produces audio.
Trait Implementations§
Source§impl Clone for AudioEndpoints
impl Clone for AudioEndpoints
Source§fn clone(&self) -> AudioEndpoints
fn clone(&self) -> AudioEndpoints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AudioEndpoints
impl Debug for AudioEndpoints
Source§impl Default for AudioEndpoints
impl Default for AudioEndpoints
Source§fn default() -> AudioEndpoints
fn default() -> AudioEndpoints
Returns the “default value” for a type. Read more
impl Eq for AudioEndpoints
Source§impl PartialEq for AudioEndpoints
impl PartialEq for AudioEndpoints
impl StructuralPartialEq for AudioEndpoints
Auto Trait Implementations§
impl Freeze for AudioEndpoints
impl RefUnwindSafe for AudioEndpoints
impl Send for AudioEndpoints
impl Sync for AudioEndpoints
impl Unpin for AudioEndpoints
impl UnsafeUnpin for AudioEndpoints
impl UnwindSafe for AudioEndpoints
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