pub struct QueueLimit {
pub max_items: usize,
pub max_bytes: usize,
}Expand description
Double caps on the number of entries and bytes in a queue or resource pool.
Fields§
§max_items: usizeThe maximum number of entries that can be occupied simultaneously must be greater than zero.
max_bytes: usizeThe upper limit of the total number of payload bytes that can be occupied simultaneously must be greater than zero.
Implementations§
Trait Implementations§
Source§impl Clone for QueueLimit
impl Clone for QueueLimit
Source§impl Debug for QueueLimit
impl Debug for QueueLimit
Auto Trait Implementations§
impl Forget for QueueLimit
impl Freeze for QueueLimit
impl Move for QueueLimit
impl RefUnwindSafe for QueueLimit
impl Send for QueueLimit
impl Sync for QueueLimit
impl Unpin for QueueLimit
impl UnsafeUnpin for QueueLimit
impl UnwindSafe for QueueLimit
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