#[repr(u32)]pub enum PortType {
Music = 0,
CopyrightMusic = 1,
Voice = 2,
Controller = 3,
Personal = 4,
Vibration = 5,
AUX = 6,
}Variants§
Trait Implementations§
source§impl PartialEq for PortType
impl PartialEq for PortType
source§impl TryFrom<u32> for PortType
impl TryFrom<u32> for PortType
§type Error = TryFromPrimitiveError<PortType>
type Error = TryFromPrimitiveError<PortType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for PortType
impl TryFromPrimitive for PortType
source§impl UnsafeFromPrimitive for PortType
impl UnsafeFromPrimitive for PortType
type Primitive = u32
source§unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
unsafe fn unchecked_transmute_from(number: Self::Primitive) -> Self
Transmutes into an enum from its primitive. Read more
source§unsafe fn from_unchecked(number: Self::Primitive) -> Self
unsafe fn from_unchecked(number: Self::Primitive) -> Self
👎Deprecated since 0.6.0: Prefer to use
unchecked_transmute_from, from_unchecked will be removed in a future release.Transmutes into an enum from its primitive. Read more
impl Copy for PortType
impl Eq for PortType
impl StructuralPartialEq for PortType
Auto Trait Implementations§
impl Freeze for PortType
impl RefUnwindSafe for PortType
impl Send for PortType
impl Sync for PortType
impl Unpin for PortType
impl UnwindSafe for PortType
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