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: boolTurns on +OK protocol acknowledgements.
pedantic: boolTurns 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: boolIf 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: StringThe implementation language of the client.
version: StringThe version of the client.
protocol: ProtocolSending 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: boolIndicates 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: boolWhether the client supports the usage of headers.
no_responders: boolWhether 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