pub struct RoutedEvent<'a, Id: ComponentId, Ctx: BindingContext> {
pub kind: EventKind,
pub command: Option<&'a str>,
pub binding_ctx: Ctx,
pub target: RouteTarget<Id>,
pub context: &'a EventContext<Id>,
}Expand description
Routed event passed to handlers.
Fields§
§kind: EventKind§command: Option<&'a str>§binding_ctx: Ctx§target: RouteTarget<Id>§context: &'a EventContext<Id>Trait Implementations§
Source§impl<'a, Id: Clone + ComponentId, Ctx: Clone + BindingContext> Clone for RoutedEvent<'a, Id, Ctx>
impl<'a, Id: Clone + ComponentId, Ctx: Clone + BindingContext> Clone for RoutedEvent<'a, Id, Ctx>
Source§fn clone(&self) -> RoutedEvent<'a, Id, Ctx>
fn clone(&self) -> RoutedEvent<'a, Id, Ctx>
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<'a, Id: Debug + ComponentId, Ctx: Debug + BindingContext> Debug for RoutedEvent<'a, Id, Ctx>
impl<'a, Id: Debug + ComponentId, Ctx: Debug + BindingContext> Debug for RoutedEvent<'a, Id, Ctx>
Auto Trait Implementations§
impl<'a, Id, Ctx> Freeze for RoutedEvent<'a, Id, Ctx>
impl<'a, Id, Ctx> RefUnwindSafe for RoutedEvent<'a, Id, Ctx>where
Ctx: RefUnwindSafe,
Id: RefUnwindSafe,
impl<'a, Id, Ctx> Send for RoutedEvent<'a, Id, Ctx>
impl<'a, Id, Ctx> Sync for RoutedEvent<'a, Id, Ctx>
impl<'a, Id, Ctx> Unpin for RoutedEvent<'a, Id, Ctx>
impl<'a, Id, Ctx> UnsafeUnpin for RoutedEvent<'a, Id, Ctx>where
Ctx: UnsafeUnpin,
Id: UnsafeUnpin,
impl<'a, Id, Ctx> UnwindSafe for RoutedEvent<'a, Id, Ctx>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more