#[non_exhaustive]pub struct SessionStickinessConfigBuilder { /* private fields */ }
Expand description
A builder for SessionStickinessConfig
.
Implementations§
source§impl SessionStickinessConfigBuilder
impl SessionStickinessConfigBuilder
sourcepub fn idle_ttl(self, input: i32) -> Self
pub fn idle_ttl(self, input: i32) -> Self
The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
sourcepub fn set_idle_ttl(self, input: Option<i32>) -> Self
pub fn set_idle_ttl(self, input: Option<i32>) -> Self
The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
sourcepub fn get_idle_ttl(&self) -> &Option<i32>
pub fn get_idle_ttl(&self) -> &Option<i32>
The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be less than or equal to MaximumTTL
.
sourcepub fn maximum_ttl(self, input: i32) -> Self
pub fn maximum_ttl(self, input: i32) -> Self
The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be greater than or equal to IdleTTL
.
sourcepub fn set_maximum_ttl(self, input: Option<i32>) -> Self
pub fn set_maximum_ttl(self, input: Option<i32>) -> Self
The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be greater than or equal to IdleTTL
.
sourcepub fn get_maximum_ttl(&self) -> &Option<i32>
pub fn get_maximum_ttl(&self) -> &Option<i32>
The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
The value must be greater than or equal to IdleTTL
.
sourcepub fn build(self) -> Result<SessionStickinessConfig, BuildError>
pub fn build(self) -> Result<SessionStickinessConfig, BuildError>
Consumes the builder and constructs a SessionStickinessConfig
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SessionStickinessConfigBuilder
impl Clone for SessionStickinessConfigBuilder
source§fn clone(&self) -> SessionStickinessConfigBuilder
fn clone(&self) -> SessionStickinessConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SessionStickinessConfigBuilder
impl Default for SessionStickinessConfigBuilder
source§fn default() -> SessionStickinessConfigBuilder
fn default() -> SessionStickinessConfigBuilder
source§impl PartialEq for SessionStickinessConfigBuilder
impl PartialEq for SessionStickinessConfigBuilder
source§fn eq(&self, other: &SessionStickinessConfigBuilder) -> bool
fn eq(&self, other: &SessionStickinessConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SessionStickinessConfigBuilder
Auto Trait Implementations§
impl Freeze for SessionStickinessConfigBuilder
impl RefUnwindSafe for SessionStickinessConfigBuilder
impl Send for SessionStickinessConfigBuilder
impl Sync for SessionStickinessConfigBuilder
impl Unpin for SessionStickinessConfigBuilder
impl UnwindSafe for SessionStickinessConfigBuilder
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
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more