#[non_exhaustive]pub struct ConnectorSettings { /* private fields */ }Expand description
Settings for HTTP Connectors
Implementations
sourceimpl ConnectorSettings
impl ConnectorSettings
sourcepub fn builder() -> ConnectorSettingsBuilder
pub fn builder() -> ConnectorSettingsBuilder
Returns a builder for ConnectorSettings.
sourcepub fn connect_timeout(&self) -> Option<Duration>
pub fn connect_timeout(&self) -> Option<Duration>
Returns the connect timeout that should be used.
The connect timeout is a limit on the amount of time it takes to initiate a socket connection.
sourcepub fn read_timeout(&self) -> Option<Duration>
pub fn read_timeout(&self) -> Option<Duration>
Returns the read timeout that should be used.
The read timeout is the limit on the amount of time it takes to read the first byte of a response from the time the request is initiated.
Trait Implementations
sourceimpl Clone for ConnectorSettings
impl Clone for ConnectorSettings
sourcefn clone(&self) -> ConnectorSettings
fn clone(&self) -> ConnectorSettings
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ConnectorSettings
impl Debug for ConnectorSettings
sourceimpl Default for ConnectorSettings
impl Default for ConnectorSettings
sourcefn default() -> ConnectorSettings
fn default() -> ConnectorSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ConnectorSettings
impl Send for ConnectorSettings
impl Sync for ConnectorSettings
impl Unpin for ConnectorSettings
impl UnwindSafe for ConnectorSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more