Enum playdate_sys::ffi::PDSystemEvent
source · #[repr(u8)]pub enum PDSystemEvent {
kEventInit = 0,
kEventInitLua = 1,
kEventLock = 2,
kEventUnlock = 3,
kEventPause = 4,
kEventResume = 5,
kEventTerminate = 6,
kEventKeyPressed = 7,
kEventKeyReleased = 8,
kEventLowPower = 9,
}Variants§
kEventInit = 0
kEventInitLua = 1
kEventLock = 2
kEventUnlock = 3
kEventPause = 4
kEventResume = 5
kEventTerminate = 6
kEventKeyPressed = 7
kEventKeyReleased = 8
kEventLowPower = 9
Trait Implementations§
source§impl Clone for PDSystemEvent
impl Clone for PDSystemEvent
source§fn clone(&self) -> PDSystemEvent
fn clone(&self) -> PDSystemEvent
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PDSystemEvent
impl Debug for PDSystemEvent
source§impl Hash for PDSystemEvent
impl Hash for PDSystemEvent
source§impl Ord for PDSystemEvent
impl Ord for PDSystemEvent
source§impl PartialEq for PDSystemEvent
impl PartialEq for PDSystemEvent
source§fn eq(&self, other: &PDSystemEvent) -> bool
fn eq(&self, other: &PDSystemEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for PDSystemEvent
impl PartialOrd for PDSystemEvent
impl Copy for PDSystemEvent
impl Eq for PDSystemEvent
impl StructuralEq for PDSystemEvent
impl StructuralPartialEq for PDSystemEvent
Auto Trait Implementations§
impl RefUnwindSafe for PDSystemEvent
impl Send for PDSystemEvent
impl Sync for PDSystemEvent
impl Unpin for PDSystemEvent
impl UnwindSafe for PDSystemEvent
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
kEventInit: 0 byteskEventInitLua: 0 byteskEventLock: 0 byteskEventUnlock: 0 byteskEventPause: 0 byteskEventResume: 0 byteskEventTerminate: 0 byteskEventKeyPressed: 0 byteskEventKeyReleased: 0 byteskEventLowPower: 0 bytes