o3 0.27.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::depot::capacity;

/// The observed occupancy when an exact ring reservation was rejected.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Full {
    pub(super) capacity: capacity::Count,
}

impl Full {
    pub const fn used(self) -> usize {
        self.capacity.get()
    }

    pub const fn capacity(self) -> usize {
        self.capacity.get()
    }
}