pub struct Output(/* private fields */);
Expand description
Information about a device output.
Implementations§
Source§impl Output
impl Output
Sourcepub fn output_type(&self) -> OutputType
pub fn output_type(&self) -> OutputType
Returns what kind of device this output is.
Sourcepub fn audioset(&self) -> u32
pub fn audioset(&self) -> u32
Returns the set of selectable audio sources when this output is active.
This may return 0 even if the device supports audio inputs to indicate that the application cannot choose an audio input.
Sourcepub fn modulator(&self) -> u32
pub fn modulator(&self) -> u32
Returns the modulator index if this input is of type OutputType::MODULATOR
.
For non-modulator outputs, this value should be ignored.
Sourcepub fn capabilities(&self) -> OutputCapabilities
pub fn capabilities(&self) -> OutputCapabilities
Returns the capability flags of this output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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