[−][src]Struct ratsio::ops::ServerInfo
INFO from nats.io server {["option_name":option_value],...}
The valid options are as follows:
- server_id: The unique identifier of the NATS server
- version: The version of the NATS server
- go: The version of golang the NATS server was built with
- host: The IP address used to start the NATS server, by default this will be 0.0.0.0 and can be configured with -client_advertise host:port
- port: The port number the NATS server is configured to listen on
- max_payload: Maximum payload size, in bytes, that the server will accept from the client.
- proto: An integer indicating the protocol version of the server. The server version 1.2.0 sets this to 1 to indicate that it supports the “Echo” feature.
- client_id: An optional unsigned integer (64 bits) representing the internal client identifier in the server. This can be used to filter client connections in monitoring, correlate with error logs, etc…
- auth_required: If this is set, then the client should try to authenticate upon connect.
- tls_required: If this is set, then the client must perform the TLS/1.2 handshake. Note, this used to be ssl_required and has been updated along with the protocol from SSL to TLS.
- tls_verify: If this is set, the client must provide a valid certificate during the TLS handshake.
- connect_urls : An optional list of server urls that a client can connect to.
Fields
server_id: String
version: String
go: String
host: String
port: u32
max_payload: usize
proto: u32
client_id: u64
auth_required: bool
tls_required: bool
tls_verify: bool
connect_urls: Vec<String>
nonce: String
Trait Implementations
impl Clone for ServerInfo
[src]
fn clone(&self) -> ServerInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ServerInfo
[src]
impl Default for ServerInfo
[src]
impl From<JsonValue> for ServerInfo
[src]
impl PartialEq<ServerInfo> for ServerInfo
[src]
fn eq(&self, other: &ServerInfo) -> bool
[src]
fn ne(&self, other: &ServerInfo) -> bool
[src]
impl StructuralPartialEq for ServerInfo
[src]
impl ToString for ServerInfo
[src]
Auto Trait Implementations
impl RefUnwindSafe for ServerInfo
impl Send for ServerInfo
impl Sync for ServerInfo
impl Unpin for ServerInfo
impl UnwindSafe for ServerInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,