[][src]Struct alone_ee::EventEmitter

pub struct EventEmitter<T> { /* fields omitted */ }

Methods

impl<T> EventEmitter<T> where
    T: Clone
[src]

pub fn new() -> Self[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn reset(&mut self)[src]

pub fn on(
    &mut self,
    handler: Box<dyn FnMut(T) -> Result<(), Box<dyn Error>>>
) -> impl FnOnce()
[src]

pub fn emit(&self, value: T) -> Result<T, Box<dyn Error>>[src]

Trait Implementations

impl<T> Default for EventEmitter<T>[src]

impl<T: Debug> Debug for EventEmitter<T>[src]

Auto Trait Implementations

impl<T> !Send for EventEmitter<T>

impl<T> !Sync for EventEmitter<T>

impl<T> Unpin for EventEmitter<T>

impl<T> UnwindSafe for EventEmitter<T>

impl<T> RefUnwindSafe for EventEmitter<T>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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