pub struct Input(/* private fields */);Expand description
Information about a device input.
Implementations§
Source§impl Input
impl Input
Sourcepub fn input_type(&self) -> InputType
pub fn input_type(&self) -> InputType
Returns what kind of device this input is.
Sourcepub fn audioset(&self) -> u32
pub fn audioset(&self) -> u32
Returns the set of selectable audio sources when this input 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 tuner(&self) -> u32
pub fn tuner(&self) -> u32
Returns the tuner index if this input is of type InputType::TUNER.
For non-tuner inputs, this value should be ignored.
Sourcepub fn std(&self) -> AnalogStd
pub fn std(&self) -> AnalogStd
Returns the set of supported analog video standards for this input.
Sourcepub fn status(&self) -> InputStatus
pub fn status(&self) -> InputStatus
Returns the current status of the input.
Note that the input needs to be selected as the active input for most fields in this value to be valid.
Sourcepub fn capabilities(&self) -> InputCapabilities
pub fn capabilities(&self) -> InputCapabilities
Returns the capability flags of this input.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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