pub struct ConnectCommandBuilder { /* private fields */ }Expand description
Builder for ConnectCommand.
Implementations§
Source§impl ConnectCommandBuilder
impl ConnectCommandBuilder
Sourcepub fn pedantic(&mut self, value: bool) -> &mut Self
pub fn pedantic(&mut self, value: bool) -> &mut Self
Turns on additional strict format checking, e.g. for properly formed subjects
Sourcepub fn tls_required(&mut self, value: bool) -> &mut Self
pub fn tls_required(&mut self, value: bool) -> &mut Self
Indicates whether the client requires an SSL connection.
Sourcepub fn auth_token(&mut self, value: Option<String>) -> &mut Self
pub fn auth_token(&mut self, value: Option<String>) -> &mut Self
Client authorization token (if auth_required is set)
Sourcepub fn user(&mut self, value: Option<String>) -> &mut Self
pub fn user(&mut self, value: Option<String>) -> &mut Self
Connection username (if auth_required is set)
Sourcepub fn pass(&mut self, value: Option<String>) -> &mut Self
pub fn pass(&mut self, value: Option<String>) -> &mut Self
Connection password (if auth_required is set)
Sourcepub fn lang<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn lang<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The implementation language of the client.
Sourcepub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn version<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The version of the client.
Sourcepub fn protocol(&mut self, value: Option<u8>) -> &mut Self
pub fn protocol(&mut self, value: Option<u8>) -> &mut Self
optional int. 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.
Sourcepub fn echo(&mut self, value: Option<bool>) -> &mut Self
pub fn echo(&mut self, value: Option<bool>) -> &mut Self
Optional boolean. 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.
Trait Implementations§
Source§impl Clone for ConnectCommandBuilder
impl Clone for ConnectCommandBuilder
Source§fn clone(&self) -> ConnectCommandBuilder
fn clone(&self) -> ConnectCommandBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more