Trait rytm_rs::query::ObjectQuery
source · pub trait ObjectQuery: SysexCompatible {
// Required methods
fn sysex_type(&self) -> AnySysexType;
fn device_id(&self) -> u8;
fn obj_nr(&self) -> u16;
// Provided methods
fn as_sysex_meta(&self) -> SysexMeta { ... }
fn is_targeting_work_buffer(&self) -> bool { ... }
}
Expand description
A trait which is implemented by all structures which can be converted to rytm sysex query messages.
Required Methods§
sourcefn sysex_type(&self) -> AnySysexType
fn sysex_type(&self) -> AnySysexType
Returns the sysex type of the object.
Provided Methods§
sourcefn as_sysex_meta(&self) -> SysexMeta
fn as_sysex_meta(&self) -> SysexMeta
Returns the sysex meta data for the object creating it.
sourcefn is_targeting_work_buffer(&self) -> bool
fn is_targeting_work_buffer(&self) -> bool
Returns the information if this query is targeting the work buffer.