pub struct HostDeviceSpec { /* private fields */ }Expand description
Specification of an enumerated host device.
Implementations§
Source§impl HostDeviceSpec
impl HostDeviceSpec
Sourcepub fn new(
id: Symbol,
backend: Symbol,
media: StreamMedia,
direction: HostDirection,
clock: Symbol,
buffer: BufferPolicy,
) -> Self
pub fn new( id: Symbol, backend: Symbol, media: StreamMedia, direction: HostDirection, clock: Symbol, buffer: BufferPolicy, ) -> Self
Builds a device spec from its identity, media, direction, clock, and buffer policy.
Sourcepub fn media(&self) -> StreamMedia
pub fn media(&self) -> StreamMedia
Returns the device media.
Sourcepub fn direction(&self) -> HostDirection
pub fn direction(&self) -> HostDirection
Returns the device direction.
Sourcepub fn buffer(&self) -> &BufferPolicy
pub fn buffer(&self) -> &BufferPolicy
Returns the device buffer policy.
Sourcepub fn metadata(&self) -> StreamMetadata
pub fn metadata(&self) -> StreamMetadata
Builds the StreamMetadata for a stream opened on this device.
Sourcepub fn open_plan(&self) -> HostOpenPlan
pub fn open_plan(&self) -> HostOpenPlan
Builds the HostOpenPlan for opening this device.
Trait Implementations§
Source§impl Clone for HostDeviceSpec
impl Clone for HostDeviceSpec
Source§fn clone(&self) -> HostDeviceSpec
fn clone(&self) -> HostDeviceSpec
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 HostDeviceSpec
impl Debug for HostDeviceSpec
impl Eq for HostDeviceSpec
Source§impl PartialEq for HostDeviceSpec
impl PartialEq for HostDeviceSpec
Source§fn eq(&self, other: &HostDeviceSpec) -> bool
fn eq(&self, other: &HostDeviceSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostDeviceSpec
Auto Trait Implementations§
impl Freeze for HostDeviceSpec
impl RefUnwindSafe for HostDeviceSpec
impl Send for HostDeviceSpec
impl Sync for HostDeviceSpec
impl Unpin for HostDeviceSpec
impl UnsafeUnpin for HostDeviceSpec
impl UnwindSafe for HostDeviceSpec
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