pub struct Limits {
pub max_live: u32,
pub attempts: u32,
}Expand description
Caller-supplied bounds for one acquisition.
Fields§
§max_live: u32Fleet-wide ceiling on resources for the key, live plus being made.
attempts: u32Reservation attempts before the pool gives the decision back as
[Plan::Wait]; a lost race (a candidate turned out busy) costs one.
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