Struct midi_msg::IdentityReply
source · pub struct IdentityReply {
pub id: ManufacturerID,
pub family: u16,
pub family_member: u16,
pub software_revision: (u8, u8, u8, u8),
}
Expand description
A response to UniversalNonRealTimeMsg::IdentityRequest
, meant to indicate the type of device
that this message is sent from.
Used by UniversalNonRealTimeMsg::IdentityReply
.
Fields§
§id: ManufacturerID
§family: u16
§family_member: u16
§software_revision: (u8, u8, u8, u8)
Four values, 0-127, sent in order provided
Implementations§
source§impl IdentityReply
impl IdentityReply
sourcepub fn family_as_bytes(&self) -> [u8; 4]
pub fn family_as_bytes(&self) -> [u8; 4]
Return the family + family member as bytes, as per many MIDI implementations docs
Trait Implementations§
source§impl Clone for IdentityReply
impl Clone for IdentityReply
source§fn clone(&self) -> IdentityReply
fn clone(&self) -> IdentityReply
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IdentityReply
impl Debug for IdentityReply
source§impl PartialEq for IdentityReply
impl PartialEq for IdentityReply
source§fn eq(&self, other: &IdentityReply) -> bool
fn eq(&self, other: &IdentityReply) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IdentityReply
impl Eq for IdentityReply
impl StructuralPartialEq for IdentityReply
Auto Trait Implementations§
impl Freeze for IdentityReply
impl RefUnwindSafe for IdentityReply
impl Send for IdentityReply
impl Sync for IdentityReply
impl Unpin for IdentityReply
impl UnwindSafe for IdentityReply
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more