Struct nacos_sdk::api::props::ClientProps
source · pub struct ClientProps { /* private fields */ }
Expand description
Configures settings for Client.
Implementations§
source§impl ClientProps
impl ClientProps
sourcepub fn server_addr(self, server_addr: impl Into<String>) -> Self
pub fn server_addr(self, server_addr: impl Into<String>) -> Self
Sets the server addr.
sourcepub fn remote_grpc_port(self, grpc_port: u32) -> Self
pub fn remote_grpc_port(self, grpc_port: u32) -> Self
Sets the grpc port
sourcepub fn naming_push_empty_protection(
self,
naming_push_empty_protection: bool,
) -> Self
pub fn naming_push_empty_protection( self, naming_push_empty_protection: bool, ) -> Self
Sets the naming_push_empty_protection.
sourcepub fn naming_load_cache_at_start(
self,
naming_load_cache_at_start: bool,
) -> Self
pub fn naming_load_cache_at_start( self, naming_load_cache_at_start: bool, ) -> Self
Sets the naming_load_cache_at_start.
sourcepub fn auth_username(self, username: impl Into<String>) -> Self
pub fn auth_username(self, username: impl Into<String>) -> Self
Add auth username.
sourcepub fn auth_password(self, password: impl Into<String>) -> Self
pub fn auth_password(self, password: impl Into<String>) -> Self
Add auth password.
sourcepub fn auth_ext(self, key: impl Into<String>, val: impl Into<String>) -> Self
pub fn auth_ext(self, key: impl Into<String>, val: impl Into<String>) -> Self
Add auth ext params.
sourcepub fn max_retries(self, max_retries: u32) -> Self
pub fn max_retries(self, max_retries: u32) -> Self
Sets the max retries.
Trait Implementations§
source§impl Clone for ClientProps
impl Clone for ClientProps
source§fn clone(&self) -> ClientProps
fn clone(&self) -> ClientProps
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ClientProps
impl RefUnwindSafe for ClientProps
impl Send for ClientProps
impl Sync for ClientProps
impl Unpin for ClientProps
impl UnwindSafe for ClientProps
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request