pub enum MidiTransportLayer {
Disabled,
Midi,
Usb,
MidiAndUsb,
}
Expand description
An enum which represents a midi port mode in the midi config menu.
Midi data can be transported via the physical midi port, usb port or both.
It can also be disabled.
Variants§
Trait Implementations§
source§impl Clone for MidiTransportLayer
impl Clone for MidiTransportLayer
source§fn clone(&self) -> MidiTransportLayer
fn clone(&self) -> MidiTransportLayer
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 MidiTransportLayer
impl Debug for MidiTransportLayer
source§impl Default for MidiTransportLayer
impl Default for MidiTransportLayer
source§fn default() -> MidiTransportLayer
fn default() -> MidiTransportLayer
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MidiTransportLayer
impl<'de> Deserialize<'de> for MidiTransportLayer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MidiTransportLayer> for &str
impl From<MidiTransportLayer> for &str
source§fn from(mtl: MidiTransportLayer) -> Self
fn from(mtl: MidiTransportLayer) -> Self
Converts to this type from the input type.
source§impl From<MidiTransportLayer> for u8
impl From<MidiTransportLayer> for u8
source§fn from(mtl: MidiTransportLayer) -> Self
fn from(mtl: MidiTransportLayer) -> Self
Converts to this type from the input type.
source§impl Hash for MidiTransportLayer
impl Hash for MidiTransportLayer
source§impl Ord for MidiTransportLayer
impl Ord for MidiTransportLayer
source§fn cmp(&self, other: &MidiTransportLayer) -> Ordering
fn cmp(&self, other: &MidiTransportLayer) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for MidiTransportLayer
impl PartialEq for MidiTransportLayer
source§fn eq(&self, other: &MidiTransportLayer) -> bool
fn eq(&self, other: &MidiTransportLayer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MidiTransportLayer
impl PartialOrd for MidiTransportLayer
source§fn partial_cmp(&self, other: &MidiTransportLayer) -> Option<Ordering>
fn partial_cmp(&self, other: &MidiTransportLayer) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for MidiTransportLayer
impl Serialize for MidiTransportLayer
source§impl TryFrom<&str> for MidiTransportLayer
impl TryFrom<&str> for MidiTransportLayer
source§impl TryFrom<u8> for MidiTransportLayer
impl TryFrom<u8> for MidiTransportLayer
impl Copy for MidiTransportLayer
impl Eq for MidiTransportLayer
impl StructuralEq for MidiTransportLayer
impl StructuralPartialEq for MidiTransportLayer
Auto Trait Implementations§
impl RefUnwindSafe for MidiTransportLayer
impl Send for MidiTransportLayer
impl Sync for MidiTransportLayer
impl Unpin for MidiTransportLayer
impl UnwindSafe for MidiTransportLayer
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