pub struct MidiInterface { /* private fields */ }Implementations§
Source§impl MidiInterface
impl MidiInterface
pub const fn is_available(self) -> bool
pub fn input_enabled(self) -> bool
pub fn output_enabled(self) -> bool
pub fn read_byte(self) -> Option<u8>
pub fn write_byte( self, byte: u8, delta_time: impl Into<MidiDeltaMicros>, ) -> bool
pub fn flush(self) -> bool
Trait Implementations§
Source§impl Clone for MidiInterface
impl Clone for MidiInterface
Source§fn clone(&self) -> MidiInterface
fn clone(&self) -> MidiInterface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MidiInterface
impl Debug for MidiInterface
Source§impl Default for MidiInterface
impl Default for MidiInterface
Source§fn default() -> MidiInterface
fn default() -> MidiInterface
Returns the “default value” for a type. Read more
impl Copy for MidiInterface
Auto Trait Implementations§
impl Freeze for MidiInterface
impl RefUnwindSafe for MidiInterface
impl Send for MidiInterface
impl Sync for MidiInterface
impl Unpin for MidiInterface
impl UnsafeUnpin for MidiInterface
impl UnwindSafe for MidiInterface
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