[][src]Struct rants::Info

pub struct Info { /* fields omitted */ }

The INFO message sent by the server

Methods

impl Info[src]

pub fn server_id(&self) -> &str[src]

The unique identifier of the NATS server

pub fn version(&self) -> &str[src]

The version of the NATS server

pub fn go(&self) -> &str[src]

The version of golang the NATS server was built with

pub fn host(&self) -> &str[src]

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

pub fn port(&self) -> u16[src]

The port number the NATS server is configured to listen on

pub fn max_payload(&self) -> usize[src]

Maximum payload size, in bytes, that the server will accept from the client.

pub fn proto(&self) -> i32[src]

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.

pub fn client_id(&self) -> Option<u64>[src]

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...

pub fn auth_required(&self) -> bool[src]

If this is set, then the client should try to authenticate upon connect.

pub fn tls_required(&self) -> bool[src]

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.

pub fn tls_verify(&self) -> bool[src]

If this is set, the client must provide a valid certificate during the TLS handshake.

pub fn connect_urls(&self) -> &[Address][src]

An optional list of server urls that a client can connect to.

Trait Implementations

impl Clone for Info[src]

impl Debug for Info[src]

impl Default for Info[src]

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

impl PartialEq<Info> for Info[src]

impl StructuralPartialEq for Info[src]

Auto Trait Implementations

impl RefUnwindSafe for Info

impl Send for Info

impl Sync for Info

impl Unpin for Info

impl UnwindSafe for Info

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> Erased for T[src]

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

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

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>,