Enum kll_core::CapabilityEvent
source · #[repr(u8)]
pub enum CapabilityEvent {
None,
Initial,
Last,
Any,
Passthrough(TriggerEvent),
}
Expand description
CapabilityEvent After voting with the indicated TriggerConditions, the CapabilityEvent is used by the Result capabilities to evaluate a generic decision. Mirrors CapabilityState, except that Passthrough contains the TriggerEvent to pass through to the corresponding Capability (see ResultGuide). If passthrough has been specified the final element of the last combo will be sent instead
Variants
None
Invalid, ignore this event
Initial
Initial state (e.g. press)
Last
Last state (e.g. release)
Any
Any activation (Initial+Last)
Passthrough(TriggerEvent)
TriggerEvent passthrough
Trait Implementations
sourceimpl Clone for CapabilityEvent
impl Clone for CapabilityEvent
sourcefn clone(&self) -> CapabilityEvent
fn clone(&self) -> CapabilityEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CapabilityEvent
impl Debug for CapabilityEvent
sourceimpl Hash for CapabilityEvent
impl Hash for CapabilityEvent
sourceimpl PartialEq<CapabilityEvent> for CapabilityEvent
impl PartialEq<CapabilityEvent> for CapabilityEvent
sourcefn eq(&self, other: &CapabilityEvent) -> bool
fn eq(&self, other: &CapabilityEvent) -> bool
impl Copy for CapabilityEvent
impl Eq for CapabilityEvent
impl StructuralEq for CapabilityEvent
impl StructuralPartialEq for CapabilityEvent
Auto Trait Implementations
impl RefUnwindSafe for CapabilityEvent
impl Send for CapabilityEvent
impl Sync for CapabilityEvent
impl Unpin for CapabilityEvent
impl UnwindSafe for CapabilityEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more