pub struct UserEvent<'a> {
pub sender: &'a str,
pub sender_id: WidgetId,
pub external_ident: &'a str,
pub internal_ident: &'a str,
/* private fields */
}Fields§
§sender: &'a str§sender_id: WidgetId§external_ident: &'a str§internal_ident: &'a strImplementations§
Source§impl<'a> UserEvent<'a>
impl<'a> UserEvent<'a>
pub fn stop_propagation(&mut self)
pub fn name(&self) -> &str
Sourcepub fn data_checked<T: 'static>(&self) -> Option<&'a T>
pub fn data_checked<T: 'static>(&self) -> Option<&'a T>
Try to cast the event payload to a specific type
pub fn should_stop_propagation(&self) -> bool
Trait Implementations§
impl<'a> Copy for UserEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for UserEvent<'a>
impl<'a> !RefUnwindSafe for UserEvent<'a>
impl<'a> !Send for UserEvent<'a>
impl<'a> !Sync for UserEvent<'a>
impl<'a> Unpin for UserEvent<'a>
impl<'a> UnsafeUnpin for UserEvent<'a>
impl<'a> !UnwindSafe for UserEvent<'a>
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