pub struct SessionConfig {
pub max_sessions: usize,
pub max_memory_per_session: usize,
pub total_memory_limit: usize,
pub auto_cleanup: bool,
pub arena_reset_interval: usize,
pub share_extensions: bool,
}Available on crate feature
std only.Expand description
Configuration for session management
Fields§
§max_sessions: usizeMaximum number of concurrent sessions
max_memory_per_session: usizeMaximum memory usage per session in bytes
total_memory_limit: usizeTotal memory limit across all sessions
auto_cleanup: boolWhether to enable automatic cleanup of unused sessions
arena_reset_interval: usizeInterval for arena resets (0 = never reset)
Whether to share extension registry across sessions
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
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 SessionConfig
impl Debug for SessionConfig
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnwindSafe for SessionConfig
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