Emit7

Trait Emit7 

Source
pub trait Emit7<R, C, T0, T1, T2, T3, T4, T5, T6>{
    type Output;

    // Required method
    fn emit(
        &self,
        a: T0,
        b: T1,
        c: T2,
        d: T3,
        e: T4,
        f: T5,
        g: T6,
    ) -> 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, a: T0, b: T1, c: T2, d: T3, e: T4, f: T5, g: T6) -> Self::Output

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

Implementors§

Source§

impl<R, C, G, T0, T1, T2, T3, T4, T5, T6> Emit7<R, C, T0, T1, T2, T3, T4, T5, T6> for EmitHandle<(T0, T1, T2, T3, T4, T5, T6), R, C, G>
where (T0, T1, T2, T3, T4, T5, T6): Clone, C: Combiner<R> + 'static, G: Ord + Send + Sync,

Source§

impl<R, C, G, T0, T1, T2, T3, T4, T5, T6> Emit7<R, C, T0, T1, T2, T3, T4, T5, T6> for Signal<(T0, T1, T2, T3, T4, T5, T6), R, C, G>
where (T0, T1, T2, T3, T4, T5, T6): Clone, C: Combiner<R> + 'static, G: Ord + Send + Sync,

Source§

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