#[non_exhaustive]pub struct EdgeOccupancy { /* private fields */ }Expand description
Queue occupancy snapshot used for decisions.
Implementations§
Source§impl EdgeOccupancy
impl EdgeOccupancy
Sourcepub const fn new(items: usize, bytes: usize, watermark: WatermarkState) -> Self
pub const fn new(items: usize, bytes: usize, watermark: WatermarkState) -> Self
Create a new EdgeOccupancy.
Sourcepub fn watermark(&self) -> &WatermarkState
pub fn watermark(&self) -> &WatermarkState
Watermark state derived from capacities.
Trait Implementations§
Source§impl Clone for EdgeOccupancy
impl Clone for EdgeOccupancy
Source§fn clone(&self) -> EdgeOccupancy
fn clone(&self) -> EdgeOccupancy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EdgeOccupancy
impl Debug for EdgeOccupancy
Source§impl PartialEq for EdgeOccupancy
impl PartialEq for EdgeOccupancy
impl Copy for EdgeOccupancy
impl Eq for EdgeOccupancy
impl StructuralPartialEq for EdgeOccupancy
Auto Trait Implementations§
impl Freeze for EdgeOccupancy
impl RefUnwindSafe for EdgeOccupancy
impl Send for EdgeOccupancy
impl Sync for EdgeOccupancy
impl Unpin for EdgeOccupancy
impl UnsafeUnpin for EdgeOccupancy
impl UnwindSafe for EdgeOccupancy
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