pub struct SessionLimits {
pub max_total_commands: u64,
pub max_exec_calls: u64,
}Expand description
Session-level resource limits that persist across exec() calls.
These limits prevent tenants from circumventing per-execution limits
by splitting work across many small exec() calls.
Fields§
§max_total_commands: u64Maximum total commands across all exec() calls. Default: 100,000
max_exec_calls: u64Maximum number of exec() invocations per session. Default: 1,000
Implementations§
Source§impl SessionLimits
impl SessionLimits
Sourcepub fn max_total_commands(self, count: u64) -> Self
pub fn max_total_commands(self, count: u64) -> Self
Set maximum total commands across all exec() calls.
Sourcepub fn max_exec_calls(self, count: u64) -> Self
pub fn max_exec_calls(self, count: u64) -> Self
Set maximum number of exec() invocations.
Trait Implementations§
Source§impl Clone for SessionLimits
impl Clone for SessionLimits
Source§fn clone(&self) -> SessionLimits
fn clone(&self) -> SessionLimits
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 SessionLimits
impl Debug for SessionLimits
Auto Trait Implementations§
impl Freeze for SessionLimits
impl RefUnwindSafe for SessionLimits
impl Send for SessionLimits
impl Sync for SessionLimits
impl Unpin for SessionLimits
impl UnsafeUnpin for SessionLimits
impl UnwindSafe for SessionLimits
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