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