#[repr(u8)]pub enum CapabilityEvent {
None = 0,
Initial = 1,
Last = 2,
Any = 3,
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 = 0
Invalid, ignore this event
Initial = 1
Initial state (e.g. press)
Last = 2
Last state (e.g. release)
Any = 3
Any activation (Initial+Last)
Passthrough(TriggerEvent)
TriggerEvent passthrough
Trait Implementations§
Source§impl Clone for CapabilityEvent
impl Clone for CapabilityEvent
Source§fn clone(&self) -> CapabilityEvent
fn clone(&self) -> CapabilityEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CapabilityEvent
impl Debug for CapabilityEvent
Source§impl Hash for CapabilityEvent
impl Hash for CapabilityEvent
Source§impl PartialEq for CapabilityEvent
impl PartialEq for CapabilityEvent
impl Copy for CapabilityEvent
impl Eq for CapabilityEvent
impl StructuralPartialEq for CapabilityEvent
Auto Trait Implementations§
impl Freeze for CapabilityEvent
impl RefUnwindSafe for CapabilityEvent
impl Send for CapabilityEvent
impl Sync for CapabilityEvent
impl Unpin for CapabilityEvent
impl UnwindSafe for CapabilityEvent
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