Enum midi_msg::FileDumpMsg[][src]

pub enum FileDumpMsg {
    Request {
        requester_device: DeviceID,
        file_type: FileType,
        name: AsciiString,
    },
    Header {
        sender_device: DeviceID,
        file_type: FileType,
        length: u32,
        name: AsciiString,
    },
    Packet {
        running_count: u8,
        data: Vec<u8>,
    },
}

Used to transmit general file data. Used by UniversalNonRealTimeMsg.

Variants

Request

Request that the file with name be sent.

Fields of Request

requester_device: DeviceIDfile_type: FileTypename: AsciiString
Header

The header of the file about to be sent.

Fields of Header

sender_device: DeviceIDfile_type: FileTypelength: u32

Actual (un-encoded) file length, 28 bits (0-2684354561)

name: AsciiString
Packet

A packet of the file being sent.

Use FileDumpMsg::packet to construct

Fields of Packet

running_count: u8

Running packet count, 0-127. Wraps back to 0

data: Vec<u8>

At most 112 bytes (full 8 bits may be used)

Implementations

impl FileDumpMsg[src]

pub fn packet(num: u32, data: Vec<u8>) -> Self[src]

Construct a packet of up to 112 (full) bytes. num is the number of this packet.

Trait Implementations

impl Clone for FileDumpMsg[src]

impl Debug for FileDumpMsg[src]

impl PartialEq<FileDumpMsg> for FileDumpMsg[src]

impl StructuralPartialEq for FileDumpMsg[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.