[−][src]Struct rants::Info
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
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> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
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]
U: From<T>,
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,