pub enum ControllerType {
Disconnected = 0,
Normal = 1,
Wavebird = 2,
Invalid = 3,
}
Expand description
Type of controller connected (Disconnected, Normal, or Wavebird)
Variants§
Trait Implementations§
Source§impl Debug for ControllerType
impl Debug for ControllerType
Source§impl Default for ControllerType
impl Default for ControllerType
Source§impl Specifier for ControllerType
impl Specifier for ControllerType
Source§type InOut = ControllerType
type InOut = ControllerType
The interface type of the specifier. Read more
Source§fn into_bytes(input: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
fn into_bytes(input: Self::InOut) -> Result<Self::Bytes, OutOfBounds>
Converts some bytes into the in-out type. Read more
Source§fn from_bytes(
bytes: Self::Bytes,
) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
fn from_bytes( bytes: Self::Bytes, ) -> Result<Self::InOut, InvalidBitPattern<Self::Bytes>>
Converts the given bytes into the in-out type. Read more
Auto Trait Implementations§
impl Freeze for ControllerType
impl RefUnwindSafe for ControllerType
impl Send for ControllerType
impl Sync for ControllerType
impl Unpin for ControllerType
impl UnwindSafe for ControllerType
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