pub struct ClientConfig {
pub endpoint: String,
pub default_timeout: Duration,
pub connect_timeout: Option<Duration>,
pub max_decoding_message_size: Option<usize>,
pub max_encoding_message_size: Option<usize>,
pub default_context: RequestContext,
pub tls: Option<TlsConfig>,
pub metadata: Vec<(String, String)>,
}Expand description
Connection and per-call defaults for an crate::OrleansClient.
Fields§
§endpoint: StringBridge endpoint, e.g. http://127.0.0.1:50051.
default_timeout: DurationDefault per-call deadline.
connect_timeout: Option<Duration>Timeout for establishing the underlying channel.
max_decoding_message_size: Option<usize>Maximum size of a response message the client will accept.
max_encoding_message_size: Option<usize>Maximum size of a request message the client will send.
default_context: RequestContextRequest-context entries applied to every call (per-call entries are overlaid on top of these).
tls: Option<TlsConfig>Transport security (see TlsConfig).
metadata: Vec<(String, String)>Static gRPC metadata (ASCII header name/value pairs) attached to every
request — typically an authorization bearer token or an API-key
header validated by a proxy in front of the bridge.
Implementations§
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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