pub struct TalosClientConfig {
pub endpoint: String,
pub crt_path: Option<String>,
pub key_path: Option<String>,
pub ca_path: Option<String>,
pub insecure: bool,
pub connect_timeout: Option<Duration>,
pub request_timeout: Option<Duration>,
pub keepalive_interval: Option<Duration>,
pub keepalive_timeout: Option<Duration>,
}Expand description
Configuration for the Talos API client.
Fields§
§endpoint: StringThe gRPC endpoint URL.
crt_path: Option<String>Path to client certificate.
key_path: Option<String>Path to client private key.
ca_path: Option<String>Path to CA certificate.
insecure: boolIf true, skips TLS verification (insecure).
connect_timeout: Option<Duration>Connection timeout for establishing the gRPC channel.
request_timeout: Option<Duration>Request timeout for individual RPC calls.
keepalive_interval: Option<Duration>Keepalive interval for long-running connections.
keepalive_timeout: Option<Duration>Keepalive timeout.
Implementations§
Source§impl TalosClientConfig
impl TalosClientConfig
Sourcepub fn builder(endpoint: impl Into<String>) -> TalosClientConfigBuilder
pub fn builder(endpoint: impl Into<String>) -> TalosClientConfigBuilder
Create a builder for more complex configuration.
Sourcepub fn with_client_cert(self, crt_path: impl Into<String>) -> Self
pub fn with_client_cert(self, crt_path: impl Into<String>) -> Self
Set client certificate path.
Sourcepub fn with_client_key(self, key_path: impl Into<String>) -> Self
pub fn with_client_key(self, key_path: impl Into<String>) -> Self
Set client key path.
Sourcepub fn with_connect_timeout(self, timeout: Duration) -> Self
pub fn with_connect_timeout(self, timeout: Duration) -> Self
Set connect timeout.
Sourcepub fn with_request_timeout(self, timeout: Duration) -> Self
pub fn with_request_timeout(self, timeout: Duration) -> Self
Set request timeout.
Sourcepub fn no_timeout(self) -> Self
pub fn no_timeout(self) -> Self
Disable all timeouts.
Trait Implementations§
Source§impl Clone for TalosClientConfig
impl Clone for TalosClientConfig
Source§fn clone(&self) -> TalosClientConfig
fn clone(&self) -> TalosClientConfig
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 moreSource§impl Debug for TalosClientConfig
impl Debug for TalosClientConfig
Auto Trait Implementations§
impl Freeze for TalosClientConfig
impl RefUnwindSafe for TalosClientConfig
impl Send for TalosClientConfig
impl Sync for TalosClientConfig
impl Unpin for TalosClientConfig
impl UnwindSafe for TalosClientConfig
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