#[non_exhaustive]pub struct SessionSpec {
pub max_idle_duration: Option<Duration>,
pub enable_fast_startup: bool,
/* private fields */
}Expand description
Configuration for sessions created for this environment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_idle_duration: Option<Duration>Optional. The idle time configuration of the session. The session will be auto-terminated at the end of this period.
enable_fast_startup: boolOptional. If True, this causes sessions to be pre-created and available for faster startup to enable interactive exploration use-cases. This defaults to False to avoid additional billed charges. These can only be set to True for the environment with name set to “default”, and with default configuration.
Implementations§
Source§impl SessionSpec
impl SessionSpec
pub fn new() -> Self
Sourcepub fn set_max_idle_duration<T>(self, v: T) -> Self
pub fn set_max_idle_duration<T>(self, v: T) -> Self
Sets the value of max_idle_duration.
Sourcepub fn set_or_clear_max_idle_duration<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_max_idle_duration<T>(self, v: Option<T>) -> Self
Sets or clears the value of max_idle_duration.
Sourcepub fn set_enable_fast_startup<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_fast_startup<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_fast_startup.
Trait Implementations§
Source§impl Clone for SessionSpec
impl Clone for SessionSpec
Source§fn clone(&self) -> SessionSpec
fn clone(&self) -> SessionSpec
Returns a duplicate 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 SessionSpec
impl Debug for SessionSpec
Source§impl Default for SessionSpec
impl Default for SessionSpec
Source§fn default() -> SessionSpec
fn default() -> SessionSpec
Returns the “default value” for a type. Read more
Source§impl Message for SessionSpec
impl Message for SessionSpec
Source§impl PartialEq for SessionSpec
impl PartialEq for SessionSpec
impl StructuralPartialEq for SessionSpec
Auto Trait Implementations§
impl Freeze for SessionSpec
impl RefUnwindSafe for SessionSpec
impl Send for SessionSpec
impl Sync for SessionSpec
impl Unpin for SessionSpec
impl UnwindSafe for SessionSpec
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