[][src]Module mogwai::component::subscriber

A very limited transmitter used to map messages.

Structs

Subscriber

A subscriber allows a component to subscribe to other components' messages without having explicit access to both Transmitter and Receiver. This allows the parent component to map child component messages into its own updates without needing its own transmitter. This is good because if send is called on a component's own ModelMsg transmitter during its Component::update it triggers a lock contetion. So a subscriber allows forwarding and wiring without enabling sending.