pub trait Message{
type Data;
type Status;
// Required methods
fn message_type(&self) -> MessageType;
fn group(&self) -> u8;
fn status(&self) -> Self::Status;
fn data(&self) -> Self::Data;
}Expand description
A shared trait by all MIDI messages.
Required Associated Types§
Required Methods§
Sourcefn message_type(&self) -> MessageType
fn message_type(&self) -> MessageType
The mt nibble of the message (most significant four bits).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".