#[non_exhaustive]pub struct ConnectorSettingsBuilder { /* private fields */ }
Expand description
Builder for ConnectorSettings
.
Implementations§
source§impl ConnectorSettingsBuilder
impl ConnectorSettingsBuilder
sourcepub fn new() -> ConnectorSettingsBuilder
pub fn new() -> ConnectorSettingsBuilder
Creates a new builder.
sourcepub fn connect_timeout(
self,
connect_timeout: Duration
) -> ConnectorSettingsBuilder
pub fn connect_timeout( self, connect_timeout: Duration ) -> ConnectorSettingsBuilder
Sets 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 set_connect_timeout(
&mut self,
connect_timeout: Option<Duration>
) -> &mut ConnectorSettingsBuilder
pub fn set_connect_timeout( &mut self, connect_timeout: Option<Duration> ) -> &mut ConnectorSettingsBuilder
Sets 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, read_timeout: Duration) -> ConnectorSettingsBuilder
pub fn read_timeout(self, read_timeout: Duration) -> ConnectorSettingsBuilder
Sets 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.
sourcepub fn set_read_timeout(
&mut self,
read_timeout: Option<Duration>
) -> &mut ConnectorSettingsBuilder
pub fn set_read_timeout( &mut self, read_timeout: Option<Duration> ) -> &mut ConnectorSettingsBuilder
Sets 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.
sourcepub fn build(self) -> ConnectorSettings
pub fn build(self) -> ConnectorSettings
Builds the ConnectorSettings
.
Trait Implementations§
source§impl Debug for ConnectorSettingsBuilder
impl Debug for ConnectorSettingsBuilder
source§impl Default for ConnectorSettingsBuilder
impl Default for ConnectorSettingsBuilder
source§fn default() -> ConnectorSettingsBuilder
fn default() -> ConnectorSettingsBuilder
Returns the “default value” for a type. Read more