pub enum GestureOwner {
Off,
Button(ButtonId),
}Expand description
Which control owns a device’s single gesture role.
Stored explicitly — rather than inferred from which button happens to carry a
Binding::Gesture — so switching the
gesture button never has to collapse a button’s gesture map to encode the
choice: every gesture-capable button keeps its full direction map, and only
the owner is dispatched. Serialized as a bare string ("Off" or a
ButtonId name) so it stays a TOML scalar.
Variants§
Off
Gestures are explicitly turned off for this device.
Button(ButtonId)
The named button owns the gesture role.
Trait Implementations§
Source§impl Clone for GestureOwner
impl Clone for GestureOwner
Source§fn clone(&self) -> GestureOwner
fn clone(&self) -> GestureOwner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GestureOwner
Source§impl Debug for GestureOwner
impl Debug for GestureOwner
impl Eq for GestureOwner
Source§impl PartialEq for GestureOwner
impl PartialEq for GestureOwner
Source§impl Serialize for GestureOwner
impl Serialize for GestureOwner
impl StructuralPartialEq for GestureOwner
Auto Trait Implementations§
impl Freeze for GestureOwner
impl RefUnwindSafe for GestureOwner
impl Send for GestureOwner
impl Sync for GestureOwner
impl Unpin for GestureOwner
impl UnsafeUnpin for GestureOwner
impl UnwindSafe for GestureOwner
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.