pub struct SegmentCaps {
pub city: u64,
pub building: u64,
pub resident: u64,
pub run: u64,
}Expand description
Per-slot byte budgets in bytes, converted from a token budget at
BYTES_PER_TOKEN and divided across PREFIX_SLOTS. Callers
derive them from config; the default splits the startup budget.
Fields§
§city: u64§building: u64§resident: u64§run: u64Implementations§
Source§impl SegmentCaps
impl SegmentCaps
pub fn startup_default() -> SegmentCaps
Trait Implementations§
Source§impl Clone for SegmentCaps
impl Clone for SegmentCaps
impl Copy for SegmentCaps
Source§impl Debug for SegmentCaps
impl Debug for SegmentCaps
impl Eq for SegmentCaps
Source§impl PartialEq for SegmentCaps
impl PartialEq for SegmentCaps
impl StructuralPartialEq for SegmentCaps
Auto Trait Implementations§
impl Freeze for SegmentCaps
impl RefUnwindSafe for SegmentCaps
impl Send for SegmentCaps
impl Sync for SegmentCaps
impl Unpin for SegmentCaps
impl UnsafeUnpin for SegmentCaps
impl UnwindSafe for SegmentCaps
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