#[repr(transparent)]pub struct SDL_JoystickConnectionState(pub c_int);Expand description
Possible connection states for a joystick device.
This is used by SDL_GetJoystickConnectionState to report how a device is
connected to the system.
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
INVALID | SDL_JOYSTICK_CONNECTION_INVALID | |
UNKNOWN | SDL_JOYSTICK_CONNECTION_UNKNOWN | |
WIRED | SDL_JOYSTICK_CONNECTION_WIRED | |
WIRELESS | SDL_JOYSTICK_CONNECTION_WIRELESS |
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for SDL_JoystickConnectionState
impl Clone for SDL_JoystickConnectionState
Source§fn clone(&self) -> SDL_JoystickConnectionState
fn clone(&self) -> SDL_JoystickConnectionState
Returns a duplicate 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 SDL_JoystickConnectionState
Available on crate feature debug-impls only.
impl Debug for SDL_JoystickConnectionState
Available on crate feature
debug-impls only.Source§impl Default for SDL_JoystickConnectionState
impl Default for SDL_JoystickConnectionState
Source§fn default() -> SDL_JoystickConnectionState
fn default() -> SDL_JoystickConnectionState
Returns the “default value” for a type. Read more
Source§impl From<SDL_JoystickConnectionState> for c_int
impl From<SDL_JoystickConnectionState> for c_int
Source§fn from(value: SDL_JoystickConnectionState) -> Self
fn from(value: SDL_JoystickConnectionState) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_JoystickConnectionState
Available on crate feature metadata only.
impl GroupMetadata for SDL_JoystickConnectionState
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_JoystickConnectionState
impl Hash for SDL_JoystickConnectionState
Source§impl Ord for SDL_JoystickConnectionState
impl Ord for SDL_JoystickConnectionState
Source§fn cmp(&self, other: &SDL_JoystickConnectionState) -> Ordering
fn cmp(&self, other: &SDL_JoystickConnectionState) -> 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<SDL_JoystickConnectionState> for c_int
impl PartialEq<SDL_JoystickConnectionState> for c_int
Source§impl PartialEq<i32> for SDL_JoystickConnectionState
impl PartialEq<i32> for SDL_JoystickConnectionState
Source§impl PartialOrd for SDL_JoystickConnectionState
impl PartialOrd for SDL_JoystickConnectionState
impl Copy for SDL_JoystickConnectionState
impl Eq for SDL_JoystickConnectionState
impl StructuralPartialEq for SDL_JoystickConnectionState
Auto Trait Implementations§
impl Freeze for SDL_JoystickConnectionState
impl RefUnwindSafe for SDL_JoystickConnectionState
impl Send for SDL_JoystickConnectionState
impl Sync for SDL_JoystickConnectionState
impl Unpin for SDL_JoystickConnectionState
impl UnwindSafe for SDL_JoystickConnectionState
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