Skip to main content

MutChannelType

Trait MutChannelType 

Source
pub trait MutChannelType: Send + Sync {
    // Required methods
    fn new_receiver(
        &mut self,
        address: &Option<SocketAddr>,
    ) -> Option<MutReceiver>;
    fn send(&self, diff: u8);
}
Expand description

Internal trait implemented by the concrete mutation channel; produces receivers and propagates property-index notifications.

Required Methods§

Source

fn new_receiver(&mut self, address: &Option<SocketAddr>) -> Option<MutReceiver>

Creates and returns a new MutReceiver bound to address, or None if the address is excluded.

Source

fn send(&self, diff: u8)

Notifies all receivers that property diff has changed.

Implementors§