pub struct AppliedRequestSettings {
pub connect_timeout: Option<Duration>,
pub timeout: Duration,
pub retries: usize,
pub ban_failed_address: bool,
pub max_decoding_message_size: Option<usize>,
pub ca_certificate: Option<Certificate>,
}Expand description
DAPI settings ready to use.
When adding a field, decide whether it affects the constructed transport
client and update connection_key accordingly (its exhaustive
destructuring will not compile until you do).
Fields§
§connect_timeout: Option<Duration>Timeout for establishing a connection.
timeout: DurationTimeout for a single request attempt; see RequestSettings::timeout.
retries: usizeNumber of retries until returning the last error.
ban_failed_address: boolBan DAPI address if node not responded or responded with error.
max_decoding_message_size: Option<usize>Maximum gRPC response size in bytes (decoding limit).
ca_certificate: Option<Certificate>Certificate Authority certificate to use for verifying the server’s certificate.
Implementations§
Source§impl AppliedRequestSettings
impl AppliedRequestSettings
Sourcepub fn with_ca_certificate(self, ca_cert: Option<Certificate>) -> Self
pub fn with_ca_certificate(self, ca_cert: Option<Certificate>) -> Self
Use provided CA certificate for verifying the server’s certificate.
If set to None, the system’s default CA certificates will be used.
Sourcepub fn attempt_deadline(&self) -> Option<Duration>
pub fn attempt_deadline(&self) -> Option<Duration>
Upper bound for one request attempt: timeout plus connect_timeout,
the bound documented on RequestSettings::timeout. A unary attempt
covers dispatch through the response body and trailers; a streaming
attempt ends when the response headers arrive. None when timeout
is zero, which means “no limit” (the transport then omits the
grpc-timeout header as well).
Trait Implementations§
Source§impl Clone for AppliedRequestSettings
impl Clone for AppliedRequestSettings
Source§fn clone(&self) -> AppliedRequestSettings
fn clone(&self) -> AppliedRequestSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AppliedRequestSettings
impl RefUnwindSafe for AppliedRequestSettings
impl Send for AppliedRequestSettings
impl Sync for AppliedRequestSettings
impl Unpin for AppliedRequestSettings
impl UnsafeUnpin for AppliedRequestSettings
impl UnwindSafe for AppliedRequestSettings
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
impl<T, U> IntoPlatformVersioned<U> for Twhere
U: FromPlatformVersioned<T>,
§fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
fn into_platform_versioned(self, platform_version: &PlatformVersion) -> U
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].