Enum midi_msg::FileDumpMsg
source · pub enum FileDumpMsg {
Request {
requester_device: DeviceID,
file_type: FileType,
name: BString,
},
Header {
sender_device: DeviceID,
file_type: FileType,
length: u32,
name: BString,
},
Packet {
running_count: u8,
data: Vec<u8>,
},
}
Expand description
Used to transmit general file data.
Used by UniversalNonRealTimeMsg
.
Variants§
Request
Request that the file with name
be sent.
Header
Fields
The header of the file about to be sent.
Packet
Fields
A packet of the file being sent.
Use FileDumpMsg::packet
to construct
Implementations§
Trait Implementations§
source§impl Clone for FileDumpMsg
impl Clone for FileDumpMsg
source§fn clone(&self) -> FileDumpMsg
fn clone(&self) -> FileDumpMsg
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 FileDumpMsg
impl Debug for FileDumpMsg
source§impl PartialEq for FileDumpMsg
impl PartialEq for FileDumpMsg
source§fn eq(&self, other: &FileDumpMsg) -> bool
fn eq(&self, other: &FileDumpMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FileDumpMsg
impl StructuralPartialEq for FileDumpMsg
Auto Trait Implementations§
impl Freeze for FileDumpMsg
impl RefUnwindSafe for FileDumpMsg
impl Send for FileDumpMsg
impl Sync for FileDumpMsg
impl Unpin for FileDumpMsg
impl UnwindSafe for FileDumpMsg
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