Connect9

Trait Connect9 

Source
pub trait Connect9<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8>
where (T0, T1, T2, T3, T4, T5, T6, T7, T8): Clone + 'static, R: 'static, C: Combiner<R> + 'static, G: Ord + Send + Sync,
{ // Required methods fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection where F: Fn(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static; fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection where F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static; // Provided methods fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection where F: Fn(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static { ... } fn connect_position<F>(&self, f: F, pos: Position) -> Connection where F: Fn(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static { ... } fn connect<F>(&self, f: F) -> Connection where F: Fn(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static { ... } fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection where F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static { ... } fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection where F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static { ... } fn connect_extended<F>(&self, f: F) -> Connection where F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static { ... } }
Expand description

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

Required Methods§

Source

fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
where F: Fn(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static,

Connects the slot function f to the given Group at the given Position

Source

fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
where F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static,

Connects the extended slot function f to the given Group at the given Position

Provided Methods§

Source

fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
where F: Fn(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static,

Connects the slot function f to the given Group at Position::Back. Equivalent to calling connect_group_position(f, group, Position::Back).

Source

fn connect_position<F>(&self, f: F, pos: Position) -> Connection
where F: Fn(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static,

Connects the slot function f to Group::Back at the given position. Equivalent to calling connect_group_position(f, Group::Back, pos).

Source

fn connect<F>(&self, f: F) -> Connection
where F: Fn(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static,

Connects the slot function f to Group::Back at Position::Back. Equivalent to calling connect_group_position(f, Group::Back, Position::Back).

Source

fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
where F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static,

Connects the extended slot function f to the given Group at Position::Back. Equivalent to calling connect_group_position_extended(f, group, Position::Back).

Source

fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
where F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static,

Connects the extended slot function f to Group::Back at the given position. Equivalent to calling connect_group_position_extended(f, Group::Back, pos).

Source

fn connect_extended<F>(&self, f: F) -> Connection
where F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> R + Send + Sync + 'static,

Connects the extended slot function f to Group::Back at Position::Back. Equivalent to calling connect_group_position_extended(f, Group::Back, Position::Back).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

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