Struct nats::Client [] [src]

pub struct Client {
    // some fields omitted
}

Methods

impl Client
[src]

fn new<T: ToStringVec>(uris: T) -> Result<ClientNatsError>

fn set_synchronous(&mut self, synchronous: bool)

fn set_name(&mut self, name: &str)

fn subscribe(&mut self, subject: &str, queue: Option<&str>) -> Result<ChannelNatsError>

fn unsubscribe(&mut self, channel: Channel) -> Result<()NatsError>

fn unsubscribe_after(&mut self, channel: Channel, max: u64) -> Result<()NatsError>

fn publish(&mut self, subject: &str, msg: &[u8]) -> Result<()NatsError>

fn make_request(&mut self, subject: &str, msg: &[u8]) -> Result<StringNatsError>

fn wait(&mut self) -> Result<EventNatsError>

fn events(&mut self) -> Events

Trait Implementations

impl Debug for Client
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.