[−][src]Struct ratsio::nats_client::NatsClientOptions
Fields
username: String
Cluster username, can be overwritten by host url nats://
password: String
Cluster password, can be overwritten by host url nats://
auth_token: String
Cluster auth_token
tls_required: bool
Whether TLS is required.
verbose: bool
verbosity, default true
pedantic: bool
pedantic, default false
echo: bool
pedantic, default true
name: String
Optional client name
cluster_uris: UriVec
Cluster URI in the IP:PORT format
ping_interval: u16
Ping interfval in seconds
ping_max_out: u16
No of unsuccessful pings before the connection is deemed disconnected.
subscribe_on_reconnect: bool
If we should re-subscribe all subscriptions on re-connection. If you don't want re-subscription, add a reconnect_handler and do your thing there.
ensure_connect: bool
If connect fails, keep trying, forever,
reconnect_timeout: u64
Time between connection retries
user_jwt: Option<UserJWT>
When using NATS 2.x decentralized security, supply a user JWT for authN/authZ
nkey: Option<String>
Nkey authentication
Implementations
impl NatsClientOptions
[src]
pub fn builder() -> NatsClientOptionsBuilder
[src]
Trait Implementations
impl Clone for NatsClientOptions
[src]
fn clone(&self) -> NatsClientOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NatsClientOptions
[src]
impl Default for NatsClientOptions
[src]
impl<'_> From<&'_ str> for NatsClientOptions
[src]
impl From<String> for NatsClientOptions
[src]
impl<'_> From<Vec<&'_ str>> for NatsClientOptions
[src]
impl From<Vec<String>> for NatsClientOptions
[src]
impl PartialEq<NatsClientOptions> for NatsClientOptions
[src]
fn eq(&self, other: &NatsClientOptions) -> bool
[src]
fn ne(&self, other: &NatsClientOptions) -> bool
[src]
impl StructuralPartialEq for NatsClientOptions
[src]
Auto Trait Implementations
impl !RefUnwindSafe for NatsClientOptions
impl Send for NatsClientOptions
impl Sync for NatsClientOptions
impl Unpin for NatsClientOptions
impl !UnwindSafe for NatsClientOptions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,