pub struct TalosClientConfigBuilder { /* private fields */ }Expand description
Builder for TalosClientConfig.
Implementations§
Source§impl TalosClientConfigBuilder
impl TalosClientConfigBuilder
Sourcepub fn client_cert(self, path: impl Into<String>) -> Self
pub fn client_cert(self, path: impl Into<String>) -> Self
Set client certificate path.
Sourcepub fn client_key(self, path: impl Into<String>) -> Self
pub fn client_key(self, path: impl Into<String>) -> Self
Set client key path.
Sourcepub fn connect_timeout(self, timeout: Duration) -> Self
pub fn connect_timeout(self, timeout: Duration) -> Self
Set connect timeout.
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Set request timeout.
Sourcepub fn no_timeout(self) -> Self
pub fn no_timeout(self) -> Self
Disable timeouts.
Sourcepub fn build(self) -> TalosClientConfig
pub fn build(self) -> TalosClientConfig
Build the configuration.
Trait Implementations§
Source§impl Clone for TalosClientConfigBuilder
impl Clone for TalosClientConfigBuilder
Source§fn clone(&self) -> TalosClientConfigBuilder
fn clone(&self) -> TalosClientConfigBuilder
Returns a duplicate 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 TalosClientConfigBuilder
impl RefUnwindSafe for TalosClientConfigBuilder
impl Send for TalosClientConfigBuilder
impl Sync for TalosClientConfigBuilder
impl Unpin for TalosClientConfigBuilder
impl UnwindSafe for TalosClientConfigBuilder
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§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