Struct portmidi::VirtualDevice
source · pub struct VirtualDevice { /* private fields */ }
Implementations§
source§impl VirtualDevice
impl VirtualDevice
sourcepub fn new(name: &str, direction: Direction) -> Result<Self>
pub fn new(name: &str, direction: Direction) -> Result<Self>
Creates a virtual input/output device depending on direction argument. Returns the device info of the created device or an Error.
pub fn id(&self) -> PortMidiDeviceId
pub fn name(&self) -> &str
pub fn is_input(&self) -> bool
pub fn is_output(&self) -> bool
Trait Implementations§
source§impl Clone for VirtualDevice
impl Clone for VirtualDevice
source§fn clone(&self) -> VirtualDevice
fn clone(&self) -> VirtualDevice
Returns a copy of the value. Read more
1.0.0 · 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 VirtualDevice
impl Debug for VirtualDevice
Auto Trait Implementations§
impl RefUnwindSafe for VirtualDevice
impl Send for VirtualDevice
impl Sync for VirtualDevice
impl Unpin for VirtualDevice
impl UnwindSafe for VirtualDevice
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