pub struct BlokliClientConfig {
pub timeout: Duration,
pub stream_reconnect_timeout: Duration,
pub subscription_read_timeout: Option<Duration>,
pub subscription_tcp_keepalive: Duration,
pub subscription_stream_restart_delay: Option<Duration>,
pub dns_override: Option<BlokliDnsOverride>,
}Expand description
Configuration for the BlokliClient.
The same configuration is used for one-shot GraphQL operations and SSE subscriptions. Non-streaming requests use
timeout as a request timeout. Subscriptions use it as the connection timeout and
then apply the subscription-specific read, reconnect, keepalive, and restart settings.
Fields§
§timeout: DurationGeneral timeout for non-streaming requests and SSE connection establishment.
stream_reconnect_timeout: DurationMaximum delay used by SSE reconnect backoff.
subscription_read_timeout: Option<Duration>Per-read timeout for SSE streams.
If None, established streams may stay open indefinitely while waiting for the next event.
subscription_tcp_keepalive: DurationTCP keepalive interval for SSE streams.
subscription_stream_restart_delay: Option<Duration>Delay before recreating a completed SSE stream.
If None, completed streams are not recreated and the returned subscription stream terminates.
dns_override: Option<BlokliDnsOverride>Optional DNS override for the Blokli base URL host.
When None, the client uses system DNS. When set, both GraphQL requests and SSE subscription connections use
the override.
Trait Implementations§
Source§impl Clone for BlokliClientConfig
impl Clone for BlokliClientConfig
Source§fn clone(&self) -> BlokliClientConfig
fn clone(&self) -> BlokliClientConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BlokliClientConfig
impl Debug for BlokliClientConfig
Source§impl Default for BlokliClientConfig
impl Default for BlokliClientConfig
Source§fn default() -> Self
fn default() -> Self
Return BlokliClientConfig { timeout: Duration::from_secs(10), stream_reconnect_timeout: Duration::from_secs(30), subscription_read_timeout: Some(Duration::from_secs(60)), subscription_tcp_keepalive: Duration::from_secs(15), subscription_stream_restart_delay: Some(Duration::from_secs(1)), dns_override: Default::default() }
impl Eq for BlokliClientConfig
Source§impl PartialEq for BlokliClientConfig
impl PartialEq for BlokliClientConfig
impl StructuralPartialEq for BlokliClientConfig
Auto Trait Implementations§
impl Freeze for BlokliClientConfig
impl RefUnwindSafe for BlokliClientConfig
impl Send for BlokliClientConfig
impl Sync for BlokliClientConfig
impl Unpin for BlokliClientConfig
impl UnsafeUnpin for BlokliClientConfig
impl UnwindSafe for BlokliClientConfig
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more