Trait IonixSysExDataSerdes

Source
pub trait IonixSysExDataSerdes<T> {
    const NAME: &'static str;

    // Required methods
    fn serialize_sysex_data(params: &T) -> Result<Vec<Vec<u8>>, String>;
    fn deserialize_sysex_data<U: AsRef<[u8]>>(
        params: &mut T,
        raw: &[U],
    ) -> Result<(), String>;
}
Expand description

Serialize and deserialize data of system exclusive message.

Required Associated Constants§

Source

const NAME: &'static str

Name of system exclusive message.

Required Methods§

Source

fn serialize_sysex_data(params: &T) -> Result<Vec<Vec<u8>>, String>

Serialize for data of system exclusive message.

Source

fn deserialize_sysex_data<U: AsRef<[u8]>>( params: &mut T, raw: &[U], ) -> Result<(), String>

Deserialize for data of system exclusive message.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§