#[non_exhaustive]pub enum DeviceDirection {
Input,
Output,
Duplex,
Unknown,
}Expand description
The direction(s) that a device supports.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Input
Input only (capture/recording)
Output
Output only (playback/rendering)
Duplex
Both input and output
Unknown
Direction unknown or not yet determined
Trait Implementations§
Source§impl Clone for DeviceDirection
impl Clone for DeviceDirection
Source§fn clone(&self) -> DeviceDirection
fn clone(&self) -> DeviceDirection
Returns a duplicate 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 DeviceDirection
impl Debug for DeviceDirection
Source§impl Default for DeviceDirection
impl Default for DeviceDirection
Source§fn default() -> DeviceDirection
fn default() -> DeviceDirection
Returns the “default value” for a type. Read more
Source§impl Display for DeviceDirection
impl Display for DeviceDirection
Source§impl From<Direction> for DeviceDirection
impl From<Direction> for DeviceDirection
Source§impl Hash for DeviceDirection
impl Hash for DeviceDirection
Source§impl PartialEq for DeviceDirection
impl PartialEq for DeviceDirection
impl Copy for DeviceDirection
impl Eq for DeviceDirection
impl StructuralPartialEq for DeviceDirection
Auto Trait Implementations§
impl Freeze for DeviceDirection
impl RefUnwindSafe for DeviceDirection
impl Send for DeviceDirection
impl Sync for DeviceDirection
impl Unpin for DeviceDirection
impl UnsafeUnpin for DeviceDirection
impl UnwindSafe for DeviceDirection
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