SysexCompatible

Trait SysexCompatible 

Source
pub trait SysexCompatible {
    // Required methods
    fn sysex_type(&self) -> AnySysexType;
    fn as_sysex(&self) -> Result<Vec<u8>, RytmError>;
}
Expand description

A trait which is implemented by all objects which can be converted to sysex messages including queries and rytm project structures.

Required Methods§

Source

fn sysex_type(&self) -> AnySysexType

Returns the sysex type of the object.

Source

fn as_sysex(&self) -> Result<Vec<u8>, RytmError>

Serializes the object to a sysex message.

§Errors

May return a SysexConversionError if the conversion fails.

Implementors§