pub struct SessionLimits {
pub max_sessions: usize,
pub idle_ttl: Duration,
}Expand description
Tunable caps on in-flight upload sessions (R2-7).
Fields§
§max_sessions: usizeMaximum number of concurrent in-flight upload sessions.
idle_ttl: DurationIdle duration after which a session is evicted on the next sweep.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SessionLimits
Source§impl Debug for SessionLimits
impl Debug for SessionLimits
Source§impl Default for SessionLimits
impl Default for SessionLimits
impl Eq for SessionLimits
Source§impl PartialEq for SessionLimits
impl PartialEq for SessionLimits
Source§fn eq(&self, other: &SessionLimits) -> bool
fn eq(&self, other: &SessionLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq 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