pub struct MidirLink { /* private fields */ }Expand description
The real synth over midir (ALSA on Linux).
Implementations§
Trait Implementations§
Source§impl Link for MidirLink
Available on crate feature midir only.
impl Link for MidirLink
Available on crate feature
midir only.Source§fn send(&mut self, bytes: &[u8]) -> Result<(), Error>
fn send(&mut self, bytes: &[u8]) -> Result<(), Error>
midir 0.11.1’s ALSA backend encodes only the first MIDI event of
each send, so each SysEx message of bytes goes out on its own.
Source§fn recv_until(&mut self, deadline: Instant) -> Result<Option<Vec<u8>>, Error>
fn recv_until(&mut self, deadline: Instant) -> Result<Option<Vec<u8>>, Error>
Next complete SysEx message, or
None when none arrives by
deadline.Source§fn ring_on_input(&mut self, bell: Sender<()>)
fn ring_on_input(&mut self, bell: Sender<()>)
Send
() on bell after input arrives (the input first), so one
thread can wait on several links. A link whose input arrives on its
own (not Link::synchronous) must implement it.Source§fn synchronous(&self) -> bool
fn synchronous(&self) -> bool
True when input only ever arrives during a send (a simulator): all
of it is there once the send returns, so a deadline passes at once
instead of being waited for.
Auto Trait Implementations§
impl !Freeze for MidirLink
impl !RefUnwindSafe for MidirLink
impl !Sync for MidirLink
impl !UnwindSafe for MidirLink
impl Send for MidirLink
impl Unpin for MidirLink
impl UnsafeUnpin for MidirLink
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