pub struct Signal<Args, R = (), C = DefaultCombiner, G = i32>{ /* private fields */ }Expand description
A handle to a signal with a slot function signature of Args -> R. C defines the combiner used
to generate a return value when emit is envoked. G defines the ordering of groups of slots. Arguments given
to the signal must implement Clone. If you need to emit a signal with an argument that doesn’t implement clone, that
argument should be wrapped in an Arc<T> (as an example) to make it cloneable.
§Examples
use signals2::*;
let sig: Signal<()> = Signal::new();
sig.connect(|| println!("Hello, world!"));
sig.emit(); // prints "Hello, world!"The only required template parameter for a Signal is the type of the parameters that the slot functions will
accept, represented as a tuple. If we want our signal to have slot functions that accept two i32s as parameters, the
template parameter will be (i32, i32). Slot functions may accept 0-12 parameters.
use signals2::*;
let sig: Signal<(i32, i32)> = Signal::new();
sig.connect(|x, y| println!("x + y = {}", x + y));
sig.emit(2, 3); // prints "x + y = 5"Special care must be taken when creating Signals with slots that accept only one parameter. The single parameter type
must still be represented as a tuple in the type signature of the Signal. The Rust compiler does not recognize (T) as a tuple-type
of arity one, rather it recognizes it as simply the type T. A comma must be used to force the Rust compiler to recognize it as a tuple, e.x. (T,)
use signals2::*;
let sig: Signal<(i32,)> = Signal::new(); // Note that using Signal<(i32)> or Signal<i32> will not compile!
sig.connect(|x| println!("x = {}", x));
sig.emit(7); // prints "x = 7"Slot functions can have return values, and the return value of the entire Signal is determined by the Combiner type.
The default combiner simply returns an Option<R> with a value of Some(x) where x is the value returned by
the last slot executed, or None in the case that no slots were executed.
use signals2::*;
let sig: Signal<(i32, i32), i32> = Signal::new();
assert_eq!(sig.emit(2, 3), None); // no slots have been added yet
sig.connect(|x, y| x + y);
assert_eq!(sig.emit(2, 3), Some(5));Implementations§
Source§impl<Args, R, C, G> Signal<Args, R, C, G>
impl<Args, R, C, G> Signal<Args, R, C, G>
Sourcepub fn new_with_combiner(combiner: C) -> Self
pub fn new_with_combiner(combiner: C) -> Self
Creates a new signal with a corresponding Combiner.
Sourcepub fn weak(&self) -> WeakSignal<Args, R, C, G>
pub fn weak(&self) -> WeakSignal<Args, R, C, G>
Creates a WeakSignal that holds a weak reference to its underling slots.
Sourcepub fn get_connect_handle(&self) -> ConnectHandle<Args, R, C, G>
pub fn get_connect_handle(&self) -> ConnectHandle<Args, R, C, G>
Creates a ConnectHandle that can be used to connect new slots to the signal.
Sourcepub fn get_emit_handle(&self) -> EmitHandle<Args, R, C, G>
pub fn get_emit_handle(&self) -> EmitHandle<Args, R, C, G>
Creates an EmitHandle that can be used to emit the signal.
Sourcepub fn set_combiner(&self, combiner: C)
pub fn set_combiner(&self, combiner: C)
Sets a new Combiner for the signal.
Sourcepub fn clear(&self)
pub fn clear(&self)
Disconnects all slots from the signal. Will cause any existing Connections to enter a “disconnected” state.
Trait Implementations§
Source§impl<Args, R, C, G> Clone for Signal<Args, R, C, G>
impl<Args, R, C, G> Clone for Signal<Args, R, C, G>
Source§fn clone(&self) -> Self
fn clone(&self) -> Self
Clones the corresponding signal. Note that a Signal is really just a handle to
an underlying collection of slots. Cloning a signal will result in two handles that
“point” to the same slots.
§Example
use signals2::*;
let sig1: Signal<()> = Signal::new();
let sig2 = sig1.clone();
sig1.connect(|| println!("Hello, world!")); // connect to the first signal
sig2.emit(); // prints "Hello, world!" because sig1 and sig2 share the same set of slots.1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<R, C, G> Connect0<R, C, G> for Signal<(), R, C, G>
impl<R, C, G> Connect0<R, C, G> for Signal<(), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0> Connect1<R, C, G, T0> for Signal<(T0,), R, C, G>
impl<R, C, G, T0> Connect1<R, C, G, T0> for Signal<(T0,), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Connect10<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> for Signal<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), R, C, G>
impl<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Connect10<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> for Signal<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Connect11<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> for Signal<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), R, C, G>
impl<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Connect11<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> for Signal<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Connect12<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> for Signal<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), R, C, G>
impl<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Connect12<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> for Signal<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connectionwhere
F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R + Send + Sync + 'static,
fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connectionwhere
F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R + Send + Sync + 'static,
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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>) -> Connectionwhere
F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R + Send + Sync + 'static,
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connectionwhere
F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R + Send + Sync + 'static,
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) -> Connectionwhere
F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R + Send + Sync + 'static,
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connectionwhere
F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R + Send + Sync + 'static,
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) -> Connectionwhere
F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R + Send + Sync + 'static,
fn connect_extended<F>(&self, f: F) -> Connectionwhere
F: Fn(Connection, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> R + Send + Sync + 'static,
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1> Connect2<R, C, G, T0, T1> for Signal<(T0, T1), R, C, G>
impl<R, C, G, T0, T1> Connect2<R, C, G, T0, T1> for Signal<(T0, T1), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2> Connect3<R, C, G, T0, T1, T2> for Signal<(T0, T1, T2), R, C, G>
impl<R, C, G, T0, T1, T2> Connect3<R, C, G, T0, T1, T2> for Signal<(T0, T1, T2), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2, T3> Connect4<R, C, G, T0, T1, T2, T3> for Signal<(T0, T1, T2, T3), R, C, G>
impl<R, C, G, T0, T1, T2, T3> Connect4<R, C, G, T0, T1, T2, T3> for Signal<(T0, T1, T2, T3), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2, T3, T4> Connect5<R, C, G, T0, T1, T2, T3, T4> for Signal<(T0, T1, T2, T3, T4), R, C, G>
impl<R, C, G, T0, T1, T2, T3, T4> Connect5<R, C, G, T0, T1, T2, T3, T4> for Signal<(T0, T1, T2, T3, T4), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2, T3, T4, T5> Connect6<R, C, G, T0, T1, T2, T3, T4, T5> for Signal<(T0, T1, T2, T3, T4, T5), R, C, G>
impl<R, C, G, T0, T1, T2, T3, T4, T5> Connect6<R, C, G, T0, T1, T2, T3, T4, T5> for Signal<(T0, T1, T2, T3, T4, T5), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2, T3, T4, T5, T6> Connect7<R, C, G, T0, T1, T2, T3, T4, T5, T6> for Signal<(T0, T1, T2, T3, T4, T5, T6), R, C, G>
impl<R, C, G, T0, T1, T2, T3, T4, T5, T6> Connect7<R, C, G, T0, T1, T2, T3, T4, T5, T6> for Signal<(T0, T1, T2, T3, T4, T5, T6), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).Source§impl<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7> Connect8<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7> for Signal<(T0, T1, T2, T3, T4, T5, T6, T7), R, C, G>
impl<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7> Connect8<R, C, G, T0, T1, T2, T3, T4, T5, T6, T7> for Signal<(T0, T1, T2, T3, T4, T5, T6, T7), R, C, G>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).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>
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>
Source§fn connect_group_position<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group_position_extended<F>(
&self,
f: F,
group: Group<G>,
pos: Position,
) -> Connection
fn connect_group_position_extended<F>( &self, f: F, group: Group<G>, pos: Position, ) -> Connection
Source§fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
fn connect_group<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position<F>(&self, f: F, pos: Position) -> Connection
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
fn connect<F>(&self, f: F) -> Connection
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
fn connect_group_extended<F>(&self, f: F, group: Group<G>) -> Connection
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
fn connect_position_extended<F>(&self, f: F, pos: Position) -> Connection
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
fn connect_extended<F>(&self, f: F) -> Connection
f to Group::Back at Position::Back. Equivalent to calling
connect_group_position_extended(f, Group::Back, Position::Back).