[][src]Struct eventear::listener_container::ListenerContainer

pub struct ListenerContainer<S: 'static> { /* fields omitted */ }

Methods

impl<S: 'static> ListenerContainer<S>[src]

pub fn new() -> Self[src]

pub fn register_listener_box<E: 'static>(
    &mut self,
    listener: Box<dyn Listener<E, S>>
)
[src]

pub fn register_listener<E: 'static, L: Listener<E, S> + 'static>(
    &mut self,
    listener: L
)
[src]

pub fn on_event<E: 'static>(
    &self,
    event: &E,
    state: &mut S
) -> Result<(), Vec<OnEventError>>
[src]

Auto Trait Implementations

impl<S> !RefUnwindSafe for ListenerContainer<S>

impl<S> !Send for ListenerContainer<S>

impl<S> !Sync for ListenerContainer<S>

impl<S> Unpin for ListenerContainer<S> where
    S: Unpin

impl<S> !UnwindSafe for ListenerContainer<S>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.