pub struct ConnectCommand {
pub verbose: bool,
pub pedantic: bool,
pub tls_required: bool,
pub name: Option<String>,
pub lang: String,
pub version: String,
/* private fields */
}
Expand description
The CONNECT message is the client version of the INFO message. Once the client has established a TCP/IP socket connection with the NATS server, and an INFO message has been received from the server, the client may send a CONNECT message to the NATS server to provide more information about the current connection as well as security information.
Fields§
§verbose: bool
Turns on +OK protocol acknowledgements.
pedantic: bool
Turns on additional strict format checking, e.g. for properly formed subjects
tls_required: bool
Indicates whether the client requires an SSL connection.
name: Option<String>
Optional client name
lang: String
The implementation language of the client.
version: String
The version of the client.
Implementations§
Source§impl ConnectCommand
impl ConnectCommand
pub fn builder() -> ConnectCommandBuilder
Trait Implementations§
Source§impl Clone for ConnectCommand
impl Clone for ConnectCommand
Source§fn clone(&self) -> ConnectCommand
fn clone(&self) -> ConnectCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Command for ConnectCommand
impl Command for ConnectCommand
Source§impl Debug for ConnectCommand
impl Debug for ConnectCommand
Source§impl Default for ConnectCommand
impl Default for ConnectCommand
Source§fn default() -> ConnectCommand
fn default() -> ConnectCommand
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectCommand
impl<'de> Deserialize<'de> for ConnectCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConnectCommand
impl PartialEq for ConnectCommand
Source§impl Serialize for ConnectCommand
impl Serialize for ConnectCommand
impl StructuralPartialEq for ConnectCommand
Auto Trait Implementations§
impl Freeze for ConnectCommand
impl RefUnwindSafe for ConnectCommand
impl Send for ConnectCommand
impl Sync for ConnectCommand
impl Unpin for ConnectCommand
impl UnwindSafe for ConnectCommand
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
Mutably borrows from an owned value. Read more