pub enum MidiEndpointControlSelector {
AssociationControl,
Undefined,
// some variants omitted
}Expand description
USB MIDI endpoint control selectors.
Variants§
Implementations§
Source§impl MidiEndpointControlSelector
impl MidiEndpointControlSelector
pub fn from_primitive(prim: u8) -> Option<MidiEndpointControlSelector>
pub fn from_primitive_allow_unknown(prim: u8) -> MidiEndpointControlSelector
pub fn unknown() -> MidiEndpointControlSelector
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for MidiEndpointControlSelector
impl Clone for MidiEndpointControlSelector
Source§fn clone(&self) -> MidiEndpointControlSelector
fn clone(&self) -> MidiEndpointControlSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MidiEndpointControlSelector
Source§impl Debug for MidiEndpointControlSelector
impl Debug for MidiEndpointControlSelector
Source§impl<D> Decode<MidiEndpointControlSelector, D> for MidiEndpointControlSelectorwhere
D: ResourceDialect,
impl<D> Decode<MidiEndpointControlSelector, D> for MidiEndpointControlSelectorwhere
D: ResourceDialect,
Source§fn new_empty() -> MidiEndpointControlSelector
fn new_empty() -> MidiEndpointControlSelector
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<MidiEndpointControlSelector, D> for MidiEndpointControlSelectorwhere
D: ResourceDialect,
impl<D> Encode<MidiEndpointControlSelector, D> for MidiEndpointControlSelectorwhere
D: ResourceDialect,
impl Eq for MidiEndpointControlSelector
Source§impl Hash for MidiEndpointControlSelector
impl Hash for MidiEndpointControlSelector
Source§impl Ord for MidiEndpointControlSelector
impl Ord for MidiEndpointControlSelector
Source§fn cmp(&self, other: &MidiEndpointControlSelector) -> Ordering
fn cmp(&self, other: &MidiEndpointControlSelector) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MidiEndpointControlSelector
impl PartialOrd for MidiEndpointControlSelector
impl StructuralPartialEq for MidiEndpointControlSelector
Source§impl TypeMarker for MidiEndpointControlSelector
impl TypeMarker for MidiEndpointControlSelector
Source§type Owned = MidiEndpointControlSelector
type Owned = MidiEndpointControlSelector
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for MidiEndpointControlSelector
impl ValueTypeMarker for MidiEndpointControlSelector
Source§type Borrowed<'a> = MidiEndpointControlSelector
type Borrowed<'a> = MidiEndpointControlSelector
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<MidiEndpointControlSelector as TypeMarker>::Owned,
) -> <MidiEndpointControlSelector as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<MidiEndpointControlSelector as TypeMarker>::Owned, ) -> <MidiEndpointControlSelector as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.Auto Trait Implementations§
impl Freeze for MidiEndpointControlSelector
impl RefUnwindSafe for MidiEndpointControlSelector
impl Send for MidiEndpointControlSelector
impl Sync for MidiEndpointControlSelector
impl Unpin for MidiEndpointControlSelector
impl UnsafeUnpin for MidiEndpointControlSelector
impl UnwindSafe for MidiEndpointControlSelector
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