pub struct ClientEndpointConfig { /* private fields */ }Implementations§
Source§impl ClientEndpointConfig
impl ClientEndpointConfig
pub fn http() -> ClientEndpointConfig
pub fn auth_token(self, token: HeaderValue) -> ClientEndpointConfig
Sourcepub fn request_timeout(self, timeout: Duration) -> ClientEndpointConfig
pub fn request_timeout(self, timeout: Duration) -> ClientEndpointConfig
Default: 5s.
Sourcepub fn connect_timeout(self, timeout: Duration) -> ClientEndpointConfig
pub fn connect_timeout(self, timeout: Duration) -> ClientEndpointConfig
Default: 3s.
Sourcepub fn tcp_keep_alive(self, timeout: Duration) -> ClientEndpointConfig
pub fn tcp_keep_alive(self, timeout: Duration) -> ClientEndpointConfig
Default: None.
Sourcepub fn http2_keep_alive_interval(
self,
interval: Duration,
) -> ClientEndpointConfig
pub fn http2_keep_alive_interval( self, interval: Duration, ) -> ClientEndpointConfig
Default: 30s
Sourcepub fn http2_keep_alive_timeout(self, timeout: Duration) -> ClientEndpointConfig
pub fn http2_keep_alive_timeout(self, timeout: Duration) -> ClientEndpointConfig
Defualt: 15s
Trait Implementations§
Source§impl Debug for ClientEndpointConfig
impl Debug for ClientEndpointConfig
Source§impl Default for ClientEndpointConfig
impl Default for ClientEndpointConfig
Source§fn default() -> ClientEndpointConfig
fn default() -> ClientEndpointConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for ClientEndpointConfig
impl RefUnwindSafe for ClientEndpointConfig
impl Send for ClientEndpointConfig
impl Sync for ClientEndpointConfig
impl Unpin for ClientEndpointConfig
impl UnwindSafe for ClientEndpointConfig
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> 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