pub struct AsioPort { /* private fields */ }Expand description
Routable ASIO port owned by a driver.
Implementations§
Source§impl AsioPort
impl AsioPort
Sourcepub fn new(
id: Symbol,
driver: Symbol,
name: String,
direction: HostDirection,
index: usize,
) -> Self
pub fn new( id: Symbol, driver: Symbol, name: String, direction: HostDirection, index: usize, ) -> Self
Builds a PCM port with the given id, owning driver id, name, direction, and per-direction channel index.
Sourcepub fn media(&self) -> StreamMedia
pub fn media(&self) -> StreamMedia
Returns the port media, always StreamMedia::Pcm for ASIO.
Sourcepub fn direction(&self) -> HostDirection
pub fn direction(&self) -> HostDirection
Returns whether the port is an input or output.
Trait Implementations§
impl Eq for AsioPort
impl StructuralPartialEq for AsioPort
Auto Trait Implementations§
impl Freeze for AsioPort
impl RefUnwindSafe for AsioPort
impl Send for AsioPort
impl Sync for AsioPort
impl Unpin for AsioPort
impl UnsafeUnpin for AsioPort
impl UnwindSafe for AsioPort
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