#[non_exhaustive]pub struct ConnectionSettingsBuilder { /* private fields */ }
Expand description
A builder for ConnectionSettings
.
Implementations§
source§impl ConnectionSettingsBuilder
impl ConnectionSettingsBuilder
sourcepub fn idle_timeout(self, input: i32) -> Self
pub fn idle_timeout(self, input: i32) -> Self
The time, in seconds, that the connection is allowed to be idle (no data has been sent over the connection) before it is closed by the load balancer.
This field is required.sourcepub fn set_idle_timeout(self, input: Option<i32>) -> Self
pub fn set_idle_timeout(self, input: Option<i32>) -> Self
The time, in seconds, that the connection is allowed to be idle (no data has been sent over the connection) before it is closed by the load balancer.
sourcepub fn get_idle_timeout(&self) -> &Option<i32>
pub fn get_idle_timeout(&self) -> &Option<i32>
The time, in seconds, that the connection is allowed to be idle (no data has been sent over the connection) before it is closed by the load balancer.
sourcepub fn build(self) -> Result<ConnectionSettings, BuildError>
pub fn build(self) -> Result<ConnectionSettings, BuildError>
Consumes the builder and constructs a ConnectionSettings
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ConnectionSettingsBuilder
impl Clone for ConnectionSettingsBuilder
source§fn clone(&self) -> ConnectionSettingsBuilder
fn clone(&self) -> ConnectionSettingsBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConnectionSettingsBuilder
impl Debug for ConnectionSettingsBuilder
source§impl Default for ConnectionSettingsBuilder
impl Default for ConnectionSettingsBuilder
source§fn default() -> ConnectionSettingsBuilder
fn default() -> ConnectionSettingsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ConnectionSettingsBuilder
impl PartialEq for ConnectionSettingsBuilder
source§fn eq(&self, other: &ConnectionSettingsBuilder) -> bool
fn eq(&self, other: &ConnectionSettingsBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionSettingsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ConnectionSettingsBuilder
impl Send for ConnectionSettingsBuilder
impl Sync for ConnectionSettingsBuilder
impl Unpin for ConnectionSettingsBuilder
impl UnwindSafe for ConnectionSettingsBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.