Struct alewife::Publisher [] [src]

pub struct Publisher<Topic: Hash + Eq + Clone, Content: Clone> { /* fields omitted */ }

Interface for sending messages to the network. To add more publishers, just clone this object and distribute the clones to your clients.

Methods

impl<Topic: Hash + Eq + Clone, Content: Clone> Publisher<Topic, Content>
[src]

Called to initialize a network.

Sends a message to the network. All topic filtering is done in the calling thread.

Trait Implementations

impl<Topic: Clone + Hash + Eq + Clone, Content: Clone + Clone> Clone for Publisher<Topic, Content>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more