pub struct Handler {
pub function: fn(Rc<RefCell<PaxAny>>, &NodeContext, Option<PaxAny>),
pub location: HandlerLocation,
}Expand description
Runtime event handler thunk generated from template bindings.
Fields§
§function: fn(Rc<RefCell<PaxAny>>, &NodeContext, Option<PaxAny>)§location: HandlerLocationImplementations§
Source§impl Handler
impl Handler
Sourcepub fn new_inline_handler(
function: fn(Rc<RefCell<PaxAny>>, &NodeContext, Option<PaxAny>),
) -> Self
pub fn new_inline_handler( function: fn(Rc<RefCell<PaxAny>>, &NodeContext, Option<PaxAny>), ) -> Self
Build a handler whose self argument is the inline primitive/component.
Sourcepub fn new_component_handler(
function: fn(Rc<RefCell<PaxAny>>, &NodeContext, Option<PaxAny>),
) -> Self
pub fn new_component_handler( function: fn(Rc<RefCell<PaxAny>>, &NodeContext, Option<PaxAny>), ) -> Self
Build a handler whose self argument is the containing component.
Auto Trait Implementations§
impl Freeze for Handler
impl RefUnwindSafe for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl UnsafeUnpin for Handler
impl UnwindSafe for Handler
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
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.