[−][src]Struct plaster::html::GenericAction
A wrapper for an action that is non-standard, such as custom events from Web Components
Methods
impl<F> GenericAction<F>
[src]
pub fn new(action: &'static str, handler: F) -> GenericAction<F>
[src]
Creates a new generic action wrapper from an event name and handler
Trait Implementations
impl<T, COMP> Listener<COMP> for GenericAction<T> where
T: Fn(Event) -> COMP::Message + 'static,
COMP: Component + Renderable<COMP>,
[src]
T: Fn(Event) -> COMP::Message + 'static,
COMP: Component + Renderable<COMP>,
Auto Trait Implementations
impl<F> Sync for GenericAction<F> where
F: Sync,
F: Sync,
impl<F> Unpin for GenericAction<F> where
F: Unpin,
F: Unpin,
impl<F> Send for GenericAction<F> where
F: Send,
F: Send,
impl<F> UnwindSafe for GenericAction<F> where
F: UnwindSafe,
F: UnwindSafe,
impl<F> RefUnwindSafe for GenericAction<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,