Struct nitox::NatsClientOptionsBuilder
source · pub struct NatsClientOptionsBuilder { /* private fields */ }
Expand description
Builder for NatsClientOptions
.
Implementations
sourceimpl NatsClientOptionsBuilder
impl NatsClientOptionsBuilder
sourcepub fn connect_command<VALUE: Into<ConnectCommand>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn connect_command<VALUE: Into<ConnectCommand>>(
&mut self,
value: VALUE
) -> &mut Self
CONNECT command that will be sent upon calling the connect()
method
sourcepub fn cluster_uri<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn cluster_uri<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Cluster URI in the IP:PORT format
Trait Implementations
sourceimpl Clone for NatsClientOptionsBuilder
impl Clone for NatsClientOptionsBuilder
sourcefn clone(&self) -> NatsClientOptionsBuilder
fn clone(&self) -> NatsClientOptionsBuilder
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 Default for NatsClientOptionsBuilder
impl Default for NatsClientOptionsBuilder
sourcefn default() -> NatsClientOptionsBuilder
fn default() -> NatsClientOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for NatsClientOptionsBuilder
impl Send for NatsClientOptionsBuilder
impl Sync for NatsClientOptionsBuilder
impl Unpin for NatsClientOptionsBuilder
impl UnwindSafe for NatsClientOptionsBuilder
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