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 acknowledgments.
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§
source§impl Clone for ConnectInfo
impl Clone for ConnectInfo
source§fn clone(&self) -> ConnectInfo
fn clone(&self) -> ConnectInfo
1.6.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConnectInfo
impl Debug for ConnectInfo
Auto Trait Implementations§
impl Freeze for ConnectInfo
impl RefUnwindSafe for ConnectInfo
impl Send for ConnectInfo
impl Sync for ConnectInfo
impl Unpin for ConnectInfo
impl UnwindSafe for ConnectInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)