Struct async_nats::ConnectInfo
source · [−]pub struct ConnectInfo {Show 16 fields
pub verbose: bool,
pub pedantic: bool,
pub user_jwt: Option<String>,
pub nkey: Option<String>,
pub signature: Option<String>,
pub name: Option<String>,
pub echo: bool,
pub lang: String,
pub version: String,
pub protocol: Protocol,
pub tls_required: bool,
pub user: Option<String>,
pub pass: Option<String>,
pub auth_token: Option<String>,
pub headers: bool,
pub no_responders: bool,
}
Expand description
Info to construct a CONNECT message.
Fields
verbose: bool
Turns on +OK protocol acknowledgements.
pedantic: bool
Turns on additional strict format checking, e.g. for properly formed subjects.
user_jwt: Option<String>
User’s JWT.
nkey: Option<String>
Public nkey.
signature: Option<String>
Signed nonce, encoded to Base64URL.
name: Option<String>
Optional client name.
echo: bool
If set to true
, the server (version 1.2.0+) will not send originating
messages from this connection to its own subscriptions. Clients should
set this to true
only for server supporting this feature, which is
when proto in the INFO protocol is set to at least 1.
lang: String
The implementation language of the client.
version: String
The version of the client.
protocol: Protocol
Sending 0 (or absent) indicates client supports original protocol. Sending 1 indicates that the client supports dynamic reconfiguration of cluster topology changes by asynchronously receiving INFO messages with known servers it can reconnect to.
tls_required: bool
Indicates whether the client requires an SSL connection.
user: Option<String>
Connection username (if auth_required
is set)
pass: Option<String>
Connection password (if auth_required is set)
auth_token: Option<String>
Client authorization token (if auth_required is set)
headers: bool
Whether the client supports the usage of headers.
no_responders: bool
Whether the client supports no_responders.
Trait Implementations
sourceimpl Clone for ConnectInfo
impl Clone for ConnectInfo
sourcefn clone(&self) -> ConnectInfo
fn clone(&self) -> ConnectInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ConnectInfo
impl Debug for ConnectInfo
sourceimpl Serialize for ConnectInfo
impl Serialize for ConnectInfo
Auto Trait Implementations
impl RefUnwindSafe for ConnectInfo
impl Send for ConnectInfo
impl Sync for ConnectInfo
impl Unpin for ConnectInfo
impl UnwindSafe for ConnectInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more