Struct nitox::NatsClientOptions
source · pub struct NatsClientOptions {
pub connect_command: ConnectCommand,
pub cluster_uri: String,
}
Expand description
Options that are to be given to the client for initialization
Fields
connect_command: ConnectCommand
CONNECT command that will be sent upon calling the connect()
method
cluster_uri: String
Cluster URI in the IP:PORT format
Implementations
sourceimpl NatsClientOptions
impl NatsClientOptions
pub fn builder() -> NatsClientOptionsBuilder
Trait Implementations
sourceimpl Clone for NatsClientOptions
impl Clone for NatsClientOptions
sourcefn clone(&self) -> NatsClientOptions
fn clone(&self) -> NatsClientOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NatsClientOptions
impl Debug for NatsClientOptions
sourceimpl Default for NatsClientOptions
impl Default for NatsClientOptions
sourcefn default() -> NatsClientOptions
fn default() -> NatsClientOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for NatsClientOptions
impl Send for NatsClientOptions
impl Sync for NatsClientOptions
impl Unpin for NatsClientOptions
impl UnwindSafe for NatsClientOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more