Probe

Trait Probe 

Source
pub trait Probe {
    type Msg: Send;
    type Pay: Clone + Send;

    // Required methods
    fn event(&self, evt: Self::Msg);
    fn payload(&self) -> &Self::Pay;
}

Required Associated Types§

Required Methods§

Source

fn event(&self, evt: Self::Msg)

Source

fn payload(&self) -> &Self::Pay

Implementations on Foreign Types§

Source§

impl<P, T> Probe for Option<ChannelProbe<P, T>>
where P: Clone + Send, T: Send,

Source§

type Msg = T

Source§

type Pay = P

Source§

fn event(&self, evt: T)

Source§

fn payload(&self) -> &P

Implementors§

Source§

impl<P, T> Probe for ChannelProbe<P, T>
where P: Clone + Send, T: Send,

Source§

type Msg = T

Source§

type Pay = P