pub struct Event<T> {
pub args: T,
/* private fields */
}Expand description
Event wrapper passed to Pax event handlers.
Event<T> carries the typed event payload and shared cancellation state,
allowing handlers to call prevent_default where the active chassis supports it.
Fields§
§args: TThe event-specific payload, for example Click or KeyDown.
Implementations§
Trait Implementations§
impl<T> ImplToFromPaxAny for Event<T>where
T: Clone + 'static,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Event<T>
impl<T> !Send for Event<T>
impl<T> !Sync for Event<T>
impl<T> !UnwindSafe for Event<T>
impl<T> Freeze for Event<T>where
T: Freeze,
impl<T> Unpin for Event<T>where
T: Unpin,
impl<T> UnsafeUnpin for Event<T>where
T: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.
Source§impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
impl<T> ToFromPaxAny for Twhere
T: ImplToFromPaxAny,
Source§fn to_pax_any(self) -> PaxAny
fn to_pax_any(self) -> PaxAny
Converts this value into a
PaxAny.Source§fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
fn from_pax_any(pax_any: PaxAny) -> Result<T, String>
Attempts to recover this concrete type from a
PaxAny.