Enum playdate::system::event::SystemEvent
source · #[repr(u8)]pub enum SystemEvent {
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
source§impl SystemEventExt for PDSystemEvent
impl SystemEventExt for PDSystemEvent
source§const Init: PDSystemEvent = SystemEvent::kEventInit
const Init: PDSystemEvent = SystemEvent::kEventInit
Program initialization. Read more
source§const InitLua: PDSystemEvent = SystemEvent::kEventInitLua
const InitLua: PDSystemEvent = SystemEvent::kEventInitLua
Program initialization in lua context.
source§const Lock: PDSystemEvent = SystemEvent::kEventLock
const Lock: PDSystemEvent = SystemEvent::kEventLock
System going to locked state.
source§const Unlock: PDSystemEvent = SystemEvent::kEventUnlock
const Unlock: PDSystemEvent = SystemEvent::kEventUnlock
System has been unlocked by user.
source§const Pause: PDSystemEvent = SystemEvent::kEventPause
const Pause: PDSystemEvent = SystemEvent::kEventPause
Program execution paused.
source§const Resume: PDSystemEvent = SystemEvent::kEventResume
const Resume: PDSystemEvent = SystemEvent::kEventResume
Program execution resumed after pause.
source§const Terminate: PDSystemEvent = SystemEvent::kEventTerminate
const Terminate: PDSystemEvent = SystemEvent::kEventTerminate
Program termination.
source§const KeyPressed: PDSystemEvent = SystemEvent::kEventKeyPressed
const KeyPressed: PDSystemEvent = SystemEvent::kEventKeyPressed
Simulator key is pressed. Read more
source§const KeyReleased: PDSystemEvent = SystemEvent::kEventKeyReleased
const KeyReleased: PDSystemEvent = SystemEvent::kEventKeyReleased
Simulator key is released. Read more
source§const LowPower: PDSystemEvent = SystemEvent::kEventLowPower
const LowPower: PDSystemEvent = SystemEvent::kEventLowPower
Low power warning by system. Read more
impl Copy for PDSystemEvent
impl Eq for PDSystemEvent
impl StructuralPartialEq for PDSystemEvent
Auto Trait Implementations§
impl Freeze for PDSystemEvent
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