pub struct Limits {
pub active: &'static AtomicUsize,
pub max_sessions: usize,
pub idle: Duration,
pub max_age: Duration,
pub busy: &'static str,
}Expand description
How many sessions of one kind may be open at once, and for how long.
Fields§
§active: &'static AtomicUsize§max_sessions: usize§idle: Duration§max_age: Duration§busy: &'static strSaid when max_sessions are open.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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