[][src]Struct ratsio::ops::ServerInfo

pub struct ServerInfo {
    pub server_id: String,
    pub version: String,
    pub go: String,
    pub host: String,
    pub port: u32,
    pub max_payload: usize,
    pub proto: u32,
    pub client_id: u64,
    pub auth_required: bool,
    pub tls_required: bool,
    pub tls_verify: bool,
    pub connect_urls: Vec<String>,
    pub nonce: String,
}

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: Stringversion: Stringgo: Stringhost: Stringport: u32max_payload: usizeproto: u32client_id: u64auth_required: booltls_required: booltls_verify: boolconnect_urls: Vec<String>nonce: String

Trait Implementations

impl Clone for ServerInfo[src]

impl Debug for ServerInfo[src]

impl Default for ServerInfo[src]

impl<'de> Deserialize<'de> for ServerInfo[src]

impl From<JsonValue> for ServerInfo[src]

impl PartialEq<ServerInfo> for ServerInfo[src]

impl Serialize for ServerInfo[src]

impl StructuralPartialEq for ServerInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,