[−][src]Struct nats::Client
Methods
impl Client
[src]
pub fn new<T: ToStringVec>(uris: T) -> Result<Client, NatsError>
[src]
pub fn set_synchronous(&mut self, synchronous: bool)
[src]
pub fn set_name(&mut self, name: &str)
[src]
pub fn set_tls_config(&mut self, config: TlsConfig)
[src]
pub fn subscribe(
&mut self,
subject: &str,
queue: Option<&str>
) -> Result<Channel, NatsError>
[src]
&mut self,
subject: &str,
queue: Option<&str>
) -> Result<Channel, NatsError>
pub fn unsubscribe(&mut self, channel: Channel) -> Result<(), NatsError>
[src]
pub fn unsubscribe_after(
&mut self,
channel: Channel,
max: u64
) -> Result<(), NatsError>
[src]
&mut self,
channel: Channel,
max: u64
) -> Result<(), NatsError>
pub fn publish(&mut self, subject: &str, msg: &[u8]) -> Result<(), NatsError>
[src]
pub fn publish_with_inbox(
&mut self,
subject: &str,
msg: &[u8],
inbox: &str
) -> Result<(), NatsError>
[src]
&mut self,
subject: &str,
msg: &[u8],
inbox: &str
) -> Result<(), NatsError>
pub fn make_request(
&mut self,
subject: &str,
msg: &[u8]
) -> Result<String, NatsError>
[src]
&mut self,
subject: &str,
msg: &[u8]
) -> Result<String, NatsError>
pub fn wait(&mut self) -> Result<Event, NatsError>
[src]
ⓘImportant traits for Events<'t>pub fn events(&mut self) -> Events
[src]
ⓘImportant traits for Events<'t>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,