pub struct Listener {
pub event: &'static str,
pub method: Option<&'static str>,
}Expand description
A listener or dispatch a component declares statically.
Fields§
§event: &'static strThe event name. A {placeholder} is filled from the component’s state.
method: Option<&'static str>The method that runs, when the listener does not run the method of the same name.
Trait Implementations§
impl Copy for Listener
impl Eq for Listener
impl StructuralPartialEq for Listener
Auto Trait Implementations§
impl Forget for Listener
impl Freeze for Listener
impl Move for Listener
impl RefUnwindSafe for Listener
impl Send for Listener
impl Sync for Listener
impl Unpin for Listener
impl UnsafeUnpin for Listenerwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Listenerwhere
&'static str: UnwindSafe,
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.