pub struct DeviceRecord {
pub id: Symbol,
pub display_name: String,
pub kind: DeviceKind,
pub direction: DeviceDirection,
pub placement: Placement,
}Expand description
Catalog row for a host-visible stream device.
Fields§
§id: SymbolStable catalog identifier.
display_name: StringHuman-facing device label.
kind: DeviceKindDevice media family.
direction: DeviceDirectionDevice stream direction.
placement: PlacementPlacement tier for the device.
Implementations§
Source§impl DeviceRecord
impl DeviceRecord
Sourcepub fn modeled_midi_input(id: &str, name: impl Into<String>) -> Self
pub fn modeled_midi_input(id: &str, name: impl Into<String>) -> Self
Builds a modeled MIDI input record.
Sourcepub fn modeled_midi_output(id: &str, name: impl Into<String>) -> Self
pub fn modeled_midi_output(id: &str, name: impl Into<String>) -> Self
Builds a modeled MIDI output record.
Sourcepub fn modeled_audio_output(id: &str, name: impl Into<String>) -> Self
pub fn modeled_audio_output(id: &str, name: impl Into<String>) -> Self
Builds a modeled audio output record.
Sourcepub fn modeled_audio_from_card(card: &AudioDeviceCard) -> Self
pub fn modeled_audio_from_card(card: &AudioDeviceCard) -> Self
Builds a modeled audio record from an audio device card.
Trait Implementations§
Source§impl Clone for DeviceRecord
impl Clone for DeviceRecord
Source§fn clone(&self) -> DeviceRecord
fn clone(&self) -> DeviceRecord
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 DeviceRecord
impl Debug for DeviceRecord
impl Eq for DeviceRecord
Source§impl PartialEq for DeviceRecord
impl PartialEq for DeviceRecord
Source§fn eq(&self, other: &DeviceRecord) -> bool
fn eq(&self, other: &DeviceRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeviceRecord
Auto Trait Implementations§
impl Freeze for DeviceRecord
impl RefUnwindSafe for DeviceRecord
impl Send for DeviceRecord
impl Sync for DeviceRecord
impl Unpin for DeviceRecord
impl UnsafeUnpin for DeviceRecord
impl UnwindSafe for DeviceRecord
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