pub struct PoolSpec {
pub kind: u8,
pub key_capacity: usize,
pub lane_capacity: usize,
}Expand description
Which segment a Pool uses, and how big it is.
One fleet can hold several independent pools: an upstream’s origins and
an outbound client’s targets share neither a budget, a key space nor an
epoch, so each names its own kind. A kind is a fleet-wide identity —
every process opening it must pass the same capacities, and the
segment’s header refuses a peer that does not. PoolSpec::DEFAULT is
what Pool::new opens; its values are the compile-time geometry.
Fields§
§kind: u8The Orbit SHM kind, and with it the segment name.
key_capacity: usizeDistinct keys this pool can name at once. A power of two.
lane_capacity: usizeResources one fleet node can register at once. A power of two, at most 65 536.
Implementations§
Trait Implementations§
impl Copy for PoolSpec
impl Eq for PoolSpec
impl StructuralPartialEq for PoolSpec
Auto Trait Implementations§
impl Freeze for PoolSpec
impl RefUnwindSafe for PoolSpec
impl Send for PoolSpec
impl Sync for PoolSpec
impl Unpin for PoolSpec
impl UnsafeUnpin for PoolSpec
impl UnwindSafe for PoolSpec
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