pub struct JackPort { /* private fields */ }Expand description
Routable JACK port owned by a client.
Implementations§
Source§impl JackPort
impl JackPort
Sourcepub fn new(
id: Symbol,
client: Symbol,
name: impl Into<String>,
media: StreamMedia,
direction: HostDirection,
index: usize,
) -> Self
pub fn new( id: Symbol, client: Symbol, name: impl Into<String>, media: StreamMedia, direction: HostDirection, index: usize, ) -> Self
Builds a port with the given id, owning client, name, media, direction, and per-direction index.
Sourcepub fn media(&self) -> StreamMedia
pub fn media(&self) -> StreamMedia
Returns the port’s stream media (PCM audio or MIDI).
Sourcepub fn direction(&self) -> HostDirection
pub fn direction(&self) -> HostDirection
Returns the port’s direction.
Trait Implementations§
impl Eq for JackPort
impl StructuralPartialEq for JackPort
Auto Trait Implementations§
impl Freeze for JackPort
impl RefUnwindSafe for JackPort
impl Send for JackPort
impl Sync for JackPort
impl Unpin for JackPort
impl UnsafeUnpin for JackPort
impl UnwindSafe for JackPort
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