Trait Emit0

Source
pub trait Emit0<R, C>
where (): Clone, C: Combiner<R> + 'static,
{ type Output; // Required method fn emit(&self) -> Self::Output; }
Expand description

Emit trait for signals with slots that accept the corresponding number of arguments.

Required Associated Types§

Source

type Output

The return value of emit will be C::Output for Signals and Option<C::Output> for EmitHandles

Required Methods§

Source

fn emit(&self) -> Self::Output

Executes the signal’s underlying slots, passing clones of the given arguments to the slot functions.

Implementors§

Source§

impl<R, C, G> Emit0<R, C> for EmitHandle<(), R, C, G>
where (): Clone, C: Combiner<R> + 'static, G: Ord + Send + Sync,

Source§

impl<R, C, G> Emit0<R, C> for Signal<(), R, C, G>
where (): Clone, C: Combiner<R> + 'static, G: Ord + Send + Sync,

Source§

type Output = <C as Combiner<R>>::Output