pub trait ClientContext {
type Endpoint;
type PollOptions;
type Error;
// Required methods
fn endpoint(&self) -> &Self::Endpoint;
fn poll_options(&self) -> &Self::PollOptions;
fn request_timeout(&self) -> Option<Duration>;
fn connect_timeout(&self) -> Option<Duration>;
}Expand description
Minimal configuration surface shared by the uploader clients.
Required Associated Types§
Sourcetype PollOptions
type PollOptions
Service-specific polling configuration type.
Required Methods§
Sourcefn poll_options(&self) -> &Self::PollOptions
fn poll_options(&self) -> &Self::PollOptions
Returns the configured polling behavior.
Sourcefn request_timeout(&self) -> Option<Duration>
fn request_timeout(&self) -> Option<Duration>
Returns the overall request timeout, when configured.
Sourcefn connect_timeout(&self) -> Option<Duration>
fn connect_timeout(&self) -> Option<Duration>
Returns the TCP connect timeout, when configured.