pub struct MidiManager { /* private fields */ }Implementations§
Source§impl MidiManager
impl MidiManager
pub fn new(registry: Arc<Mutex<EventRegistry>>) -> Self
pub fn list_input_ports() -> Vec<String>
pub fn open_input_by_index( &mut self, index: usize, name: &str, ) -> Result<(), String>
pub fn open_output_by_name( &mut self, name: &str, index: usize, ) -> Result<(), String>
pub fn send_note_on( &mut self, device_name: &str, channel: u8, note: u8, vel: u8, ) -> Result<(), String>
Auto Trait Implementations§
impl !RefUnwindSafe for MidiManager
impl !Sync for MidiManager
impl !UnwindSafe for MidiManager
impl Freeze for MidiManager
impl Send for MidiManager
impl Unpin for MidiManager
impl UnsafeUnpin for MidiManager
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
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more