Enum midi_msg::FileReferenceMsg[][src]

pub enum FileReferenceMsg {
    Open {
        ctx: u16,
        file_type: FileReferenceType,
        url: AsciiString,
    },
    SelectContents {
        ctx: u16,
        map: SelectMap,
    },
    OpenSelectContents {
        ctx: u16,
        file_type: FileReferenceType,
        url: AsciiString,
        map: SelectMap,
    },
    Close {
        ctx: u16,
    },
}

The set of messages used for accessing files on a shared file system or network so they can be used to play sounds without transferring the file contents. Used by UniversalNonRealTimeMsg::FileReference.

As defined in CA-018.

Variants

Open

Describe where a file is located for opening, but must be followed by a SelectContents message if any sounds are to play.

Fields of Open

ctx: u16

A number 0-16383 used to distinguish between multiple file operations on the same device

file_type: FileReferenceTypeurl: AsciiString

Max 260 character url.

SelectContents

Given the pointer to a file, prepare it so its sounds can be loaded.

Fields of SelectContents

ctx: u16

A number 0-16383 used to distinguish between multiple file operations on the same device

map: SelectMap

How to map the file’s sounds onto MIDI banks/programs.

OpenSelectContents

The equivalent of an Open and SelectContents messages in succession.

Fields of OpenSelectContents

ctx: u16

A number 0-16383 used to distinguish between multiple file operations on the same device

file_type: FileReferenceTypeurl: AsciiString

Max 260 character url.

map: SelectMap

How to map the file’s sounds onto MIDI banks/programs.

Close

Close the file and deallocate the data related to it, such that its sounds should no longer play.

Fields of Close

ctx: u16

A number 0-16383 used to distinguish between multiple file operations on the same device

Trait Implementations

impl Clone for FileReferenceMsg[src]

impl Debug for FileReferenceMsg[src]

impl PartialEq<FileReferenceMsg> for FileReferenceMsg[src]

impl StructuralPartialEq for FileReferenceMsg[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.