[−][src]Function mogwai::txrx::txrx_map
pub fn txrx_map<A, B, F>(f: F) -> (Transmitter<A>, Receiver<B>) where
A: Any,
B: Any,
F: Fn(&A) -> B + 'static,
Create a linked Transmitter<A>
and Receiver<B>
pair.
Using the given map function, messages sent on the transmitter are mapped to output messages that will be sent to the receiver.