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
sender_device: DeviceID
file_type: FileType
length: u32
Actual (un-encoded) file length, 28 bits (0-2684354561)
name: BString
The header of the file about to be sent.
Packet
Fields
running_count: u8
Running packet count, 0-127. Wraps back to 0
A packet of the file being sent.
Use FileDumpMsg::packet
to construct
Implementations
Trait Implementations
sourceimpl Clone for FileDumpMsg
impl Clone for FileDumpMsg
sourcefn clone(&self) -> FileDumpMsg
fn clone(&self) -> FileDumpMsg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FileDumpMsg
impl Debug for FileDumpMsg
sourceimpl PartialEq<FileDumpMsg> for FileDumpMsg
impl PartialEq<FileDumpMsg> for FileDumpMsg
sourcefn eq(&self, other: &FileDumpMsg) -> bool
fn eq(&self, other: &FileDumpMsg) -> bool
impl Eq for FileDumpMsg
impl StructuralEq for FileDumpMsg
impl StructuralPartialEq for FileDumpMsg
Auto Trait Implementations
impl RefUnwindSafe for FileDumpMsg
impl Send for FileDumpMsg
impl Sync for FileDumpMsg
impl Unpin for FileDumpMsg
impl UnwindSafe for FileDumpMsg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more