[−][src]Struct jack::MidiWriter
Write midi events to an output midi port.
Methods
impl<'a> MidiWriter<'a>[src]
pub fn write(&mut self, message: &RawMidi) -> Result<(), Error>[src]
Write an event into an event port buffer.
Clients must write normalised MIDI data to the port - no running status and no (1-byte) realtime messages interspersed with other messagse (realtime messages are fine when they occur on their own, like other messages).
pub fn lost_count(&self) -> usize[src]
Get the number of events that could not be written to port_buffer.
If the return value is greater than 0, than the buffer is full. Currently, the only way this can happen is if events are lost on port mixdown.
pub fn max_event_size(&self) -> usize[src]
Get the size of the largest event that can be stored by the port.
This function returns the current space available, taking into account events already stored in the port.
Trait Implementations
Auto Trait Implementations
impl<'a> Unpin for MidiWriter<'a>
impl<'a> !Sync for MidiWriter<'a>
impl<'a> !Send for MidiWriter<'a>
impl<'a> UnwindSafe for MidiWriter<'a>
impl<'a> RefUnwindSafe for MidiWriter<'a>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,