pub struct KeyboardEventPhase { /* private fields */ }Expand description
The wire type corresponding to KeyboardEventPhase.
Implementations§
Source§impl KeyboardEventPhase
impl KeyboardEventPhase
pub const PRESSED: KeyboardEventPhase
pub const RELEASED: KeyboardEventPhase
pub const CANCELLED: KeyboardEventPhase
pub const REPEAT: KeyboardEventPhase
Trait Implementations§
Source§impl Clone for KeyboardEventPhase
impl Clone for KeyboardEventPhase
Source§fn clone(&self) -> KeyboardEventPhase
fn clone(&self) -> KeyboardEventPhase
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 moreSource§impl Constrained for KeyboardEventPhase
impl Constrained for KeyboardEventPhase
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, KeyboardEventPhase>,
_: <KeyboardEventPhase as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, KeyboardEventPhase>, _: <KeyboardEventPhase as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
impl Copy for KeyboardEventPhase
Source§impl Debug for KeyboardEventPhase
impl Debug for KeyboardEventPhase
Source§impl<___D> Decode<___D> for KeyboardEventPhasewhere
___D: ?Sized,
impl<___D> Decode<___D> for KeyboardEventPhasewhere
___D: ?Sized,
Source§impl<___E> Encode<KeyboardEventPhase, ___E> for KeyboardEventPhasewhere
___E: ?Sized,
impl<___E> Encode<KeyboardEventPhase, ___E> for KeyboardEventPhasewhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<KeyboardEventPhase>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<KeyboardEventPhase>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'a, ___E> Encode<KeyboardEventPhase, ___E> for &'a KeyboardEventPhasewhere
___E: ?Sized,
impl<'a, ___E> Encode<KeyboardEventPhase, ___E> for &'a KeyboardEventPhasewhere
___E: ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<KeyboardEventPhase>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<KeyboardEventPhase>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
impl Eq for KeyboardEventPhase
Source§impl From<KeyboardEventPhase> for KeyboardEventPhase
impl From<KeyboardEventPhase> for KeyboardEventPhase
Source§fn from(wire: KeyboardEventPhase) -> KeyboardEventPhase
fn from(wire: KeyboardEventPhase) -> KeyboardEventPhase
Converts to this type from the input type.
Source§impl From<KeyboardEventPhase> for KeyboardEventPhase
impl From<KeyboardEventPhase> for KeyboardEventPhase
Source§fn from(natural: KeyboardEventPhase) -> KeyboardEventPhase
fn from(natural: KeyboardEventPhase) -> KeyboardEventPhase
Converts to this type from the input type.
Source§impl FromWire<KeyboardEventPhase> for KeyboardEventPhase
impl FromWire<KeyboardEventPhase> for KeyboardEventPhase
Source§fn from_wire(wire: KeyboardEventPhase) -> KeyboardEventPhase
fn from_wire(wire: KeyboardEventPhase) -> KeyboardEventPhase
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl FromWireRef<KeyboardEventPhase> for KeyboardEventPhase
impl FromWireRef<KeyboardEventPhase> for KeyboardEventPhase
Source§fn from_wire_ref(wire: &KeyboardEventPhase) -> KeyboardEventPhase
fn from_wire_ref(wire: &KeyboardEventPhase) -> KeyboardEventPhase
Converts the given reference to this type.
Source§impl IntoNatural for KeyboardEventPhase
impl IntoNatural for KeyboardEventPhase
Source§type Natural = KeyboardEventPhase
type Natural = KeyboardEventPhase
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl PartialEq for KeyboardEventPhase
impl PartialEq for KeyboardEventPhase
impl StructuralPartialEq for KeyboardEventPhase
Source§impl Wire for KeyboardEventPhase
impl Wire for KeyboardEventPhase
Source§type Narrowed<'de> = KeyboardEventPhase
type Narrowed<'de> = KeyboardEventPhase
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(_: &mut MaybeUninit<KeyboardEventPhase>)
fn zero_padding(_: &mut MaybeUninit<KeyboardEventPhase>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for KeyboardEventPhase
impl RefUnwindSafe for KeyboardEventPhase
impl Send for KeyboardEventPhase
impl Sync for KeyboardEventPhase
impl Unpin for KeyboardEventPhase
impl UnsafeUnpin for KeyboardEventPhase
impl UnwindSafe for KeyboardEventPhase
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,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]