Skip to main content

ClientContext

Trait ClientContext 

Source
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§

Source

type Endpoint

Service-specific endpoint configuration type.

Source

type PollOptions

Service-specific polling configuration type.

Source

type Error

Service-specific error type.

Required Methods§

Source

fn endpoint(&self) -> &Self::Endpoint

Returns the configured endpoint roots.

Source

fn poll_options(&self) -> &Self::PollOptions

Returns the configured polling behavior.

Source

fn request_timeout(&self) -> Option<Duration>

Returns the overall request timeout, when configured.

Source

fn connect_timeout(&self) -> Option<Duration>

Returns the TCP connect timeout, when configured.

Implementors§