Enum midi_msg::FileReferenceMsg
source · pub enum FileReferenceMsg {
Open {
ctx: u16,
file_type: FileReferenceType,
url: BString,
},
SelectContents {
ctx: u16,
map: SelectMap,
},
OpenSelectContents {
ctx: u16,
file_type: FileReferenceType,
url: BString,
map: SelectMap,
},
Close {
ctx: u16,
},
}
Expand description
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
§
file_type: FileReferenceType
SelectContents
Given the pointer to a file, prepare it so its sounds can be loaded.
Fields
OpenSelectContents
The equivalent of an Open
and SelectContents
messages in succession.
Fields
§
file_type: FileReferenceType
Close
Close the file and deallocate the data related to it, such that its sounds should no longer play.
Trait Implementations§
source§impl Clone for FileReferenceMsg
impl Clone for FileReferenceMsg
source§fn clone(&self) -> FileReferenceMsg
fn clone(&self) -> FileReferenceMsg
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 FileReferenceMsg
impl Debug for FileReferenceMsg
source§impl PartialEq for FileReferenceMsg
impl PartialEq for FileReferenceMsg
source§fn eq(&self, other: &FileReferenceMsg) -> bool
fn eq(&self, other: &FileReferenceMsg) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FileReferenceMsg
impl StructuralPartialEq for FileReferenceMsg
Auto Trait Implementations§
impl Freeze for FileReferenceMsg
impl RefUnwindSafe for FileReferenceMsg
impl Send for FileReferenceMsg
impl Sync for FileReferenceMsg
impl Unpin for FileReferenceMsg
impl UnwindSafe for FileReferenceMsg
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