Struct ctru_sys::LightEvent
source · #[repr(C)]pub struct LightEvent {
pub state: s32,
pub lock: LightLock,
}
Expand description
A light event.
Fields§
§state: s32
< State of the event: -2=cleared sticky, -1=cleared oneshot, 0=signaled oneshot, 1=signaled sticky
lock: LightLock
< Lock used for sticky timer operation
Trait Implementations§
source§impl Clone for LightEvent
impl Clone for LightEvent
source§fn clone(&self) -> LightEvent
fn clone(&self) -> LightEvent
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 LightEvent
impl Debug for LightEvent
source§impl Default for LightEvent
impl Default for LightEvent
source§fn default() -> LightEvent
fn default() -> LightEvent
Returns the “default value” for a type. Read more