pub struct HostPortSpec { /* private fields */ }Expand description
Addressable host port owned by an enumerated device.
Implementations§
Source§impl HostPortSpec
impl HostPortSpec
Sourcepub fn new(
id: Symbol,
device: Symbol,
backend: Symbol,
media: StreamMedia,
direction: HostDirection,
) -> Self
pub fn new( id: Symbol, device: Symbol, backend: Symbol, media: StreamMedia, direction: HostDirection, ) -> Self
Builds a port spec identifying id on device under backend.
Sourcepub fn media(&self) -> StreamMedia
pub fn media(&self) -> StreamMedia
Returns the port media.
Sourcepub fn direction(&self) -> HostDirection
pub fn direction(&self) -> HostDirection
Returns the port direction.
Trait Implementations§
Source§impl Clone for HostPortSpec
impl Clone for HostPortSpec
Source§fn clone(&self) -> HostPortSpec
fn clone(&self) -> HostPortSpec
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 HostPortSpec
impl Debug for HostPortSpec
impl Eq for HostPortSpec
Source§impl PartialEq for HostPortSpec
impl PartialEq for HostPortSpec
Source§fn eq(&self, other: &HostPortSpec) -> bool
fn eq(&self, other: &HostPortSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostPortSpec
Auto Trait Implementations§
impl Freeze for HostPortSpec
impl RefUnwindSafe for HostPortSpec
impl Send for HostPortSpec
impl Sync for HostPortSpec
impl Unpin for HostPortSpec
impl UnsafeUnpin for HostPortSpec
impl UnwindSafe for HostPortSpec
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