#[repr(C)]pub struct SDL_GUID {
pub data: [Uint8; 16],
}
Expand description
An SDL_GUID is a 128-bit identifier for an input device that identifies that device across runs of SDL programs on the same platform. If the device is detached and then re-attached to a different port, or if the base system is rebooted, the device should still report the same GUID.
GUIDs are as precise as possible but are not guaranteed to distinguish physically distinct but equivalent devices. For example, two game controllers from the same vendor with the same product ID and revision may have the same GUID.
GUIDs may be platform-dependent (i.e., the same device may report different GUIDs on different operating systems).
Fields§
§data: [Uint8; 16]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SDL_GUID
impl RefUnwindSafe for SDL_GUID
impl Send for SDL_GUID
impl Sync for SDL_GUID
impl Unpin for SDL_GUID
impl UnwindSafe for SDL_GUID
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