pub struct NatsClientOptions {
pub connect: Connect,
pub cluster_uris: Vec<String>,
pub ping_interval: u16,
pub ping_max_out: u16,
pub subscribe_on_reconnect: bool,
pub ensure_connect: bool,
pub reconnect_timeout: u64,
}
Options that are to be given to the client for initialization
CONNECT command that will be sent upon calling the connect()
method
Cluster URI in the IP:PORT format
Ping interfval in seconds
No of unsuccessful pings before the connection is deemed disconnected.
If we should re-subscribe all subscriptions on re-connection.
If you don't want re-subscription, add a reconnect_handler and do your thing there.
If connect fails, keep trying, forever,
Time between connection retries
Returns the "default value" for a type. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static