Trait Receive

Source
pub trait Receive<E> {
    type Output;

    // Required method
    fn send(&mut self, event: E) -> ReceiverResult<E, Self::Output>;
}

Required Associated Types§

Required Methods§

Source

fn send(&mut self, event: E) -> ReceiverResult<E, Self::Output>

Implementations on Foreign Types§

Source§

impl<E, R: Receive<E>> Receive<E> for Rc<RefCell<R>>

Source§

type Output = <R as Receive<E>>::Output

Source§

fn send(&mut self, event: E) -> ReceiverResult<E, Self::Output>

Source§

impl<E, R: Receive<E>> Receive<E> for Rc<Mutex<R>>

Source§

type Output = <R as Receive<E>>::Output

Source§

fn send(&mut self, event: E) -> ReceiverResult<E, Self::Output>

Source§

impl<E, R: Receive<E>> Receive<E> for Rc<RwLock<R>>

Source§

type Output = <R as Receive<E>>::Output

Source§

fn send(&mut self, event: E) -> ReceiverResult<E, Self::Output>

Source§

impl<E, R: Receive<E>> Receive<E> for Arc<Mutex<R>>

Source§

type Output = <R as Receive<E>>::Output

Source§

fn send(&mut self, event: E) -> ReceiverResult<E, Self::Output>

Source§

impl<E, R: Receive<E>> Receive<E> for Arc<RwLock<R>>

Source§

type Output = <R as Receive<E>>::Output

Source§

fn send(&mut self, event: E) -> ReceiverResult<E, Self::Output>

Implementors§

Source§

impl<E> Receive<E> for PassReceiver

Source§

impl<E, R: Receive<E>> Receive<E> for ArcLinked<R>

Source§

type Output = <R as Receive<E>>::Output

Source§

impl<E, R: Receive<E>> Receive<E> for Exposed<E, R>

Source§

type Output = <R as Receive<E>>::Output

Source§

impl<E, R: Receive<E>> Receive<E> for RcLinked<R>

Source§

type Output = <R as Receive<E>>::Output

Source§

impl<E, R: Receive<E>> Receive<E> for Router<E, R>

Source§

type Output = <R as Receive<E>>::Output