Struct alewife::Publisher [] [src]

pub struct Publisher<Topic: Hash + Eq + Clone, Content: Clone> {
    // some 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]

fn new() -> Builder<Topic, Content>

Called to initialize a network.

fn publish(&self, topic: Topic, content: Content)

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

Trait Implementations

Derived Implementations

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

fn clone(&self) -> Publisher<Topic, Content>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more