1
0
Fork 0

Add trait bounds for the SysExMessage trait

This commit is contained in:
Robbert van der Helm 2023-01-31 17:51:56 +01:00
parent c828dabb03
commit 978d466019

View file

@ -1,7 +1,9 @@
//! Traits for working with MIDI SysEx data. //! Traits for working with MIDI SysEx data.
use std::fmt::Debug;
/// A type that can be converted to and from byte buffers containing MIDI SysEx messages. /// A type that can be converted to and from byte buffers containing MIDI SysEx messages.
pub trait SysExMessage { pub trait SysExMessage: Debug + Clone + PartialEq + Send + Sync {
/// The maximum SysEx message size, in bytes. /// The maximum SysEx message size, in bytes.
const MAX_BUFFER_SIZE: usize; const MAX_BUFFER_SIZE: usize;