pub(crate) struct QueueDepth {
pub(crate) bytes: usize,
pub(crate) objects: usize,
}Expand description
The per-stream queue depth, in both units at once.
Both limits, always: a queue of small objects reaches neither the byte
depth nor EgressConfig::max_pending_bytes, and a queue of large ones
reaches the byte depth long before the object count.
Fields§
§bytes: usizeBytes one stream’s queue may hold.
objects: usizeObjects one stream’s queue may hold.
Trait Implementations§
Source§impl Clone for QueueDepth
impl Clone for QueueDepth
Source§fn clone(&self) -> QueueDepth
fn clone(&self) -> QueueDepth
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 QueueDepth
Source§impl Debug for QueueDepth
impl Debug for QueueDepth
impl Eq for QueueDepth
Source§impl PartialEq for QueueDepth
impl PartialEq for QueueDepth
impl StructuralPartialEq for QueueDepth
Auto Trait Implementations§
impl Freeze for QueueDepth
impl RefUnwindSafe for QueueDepth
impl Send for QueueDepth
impl Sync for QueueDepth
impl Unpin for QueueDepth
impl UnsafeUnpin for QueueDepth
impl UnwindSafe for QueueDepth
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