pub struct SegmentLayout {
pub peer_table_offset: usize,
pub ring_base_offset: usize,
pub var_pool_offset: usize,
pub total_size: usize,
}Expand description
Computed byte offsets for a segment’s sub-structures.
Fields§
§peer_table_offset: usizeByte offset of the peer table (= SEGMENT_HEADER_SIZE = 128).
ring_base_offset: usizeByte offset of the BipBuffer pairs within the segment.
var_pool_offset: usizeByte offset of the VarSlotPool.
total_size: usizeTotal segment size in bytes.
Implementations§
Source§impl SegmentLayout
impl SegmentLayout
pub fn compute( max_guests: u8, bipbuf_capacity: u32, size_classes: &[SizeClassConfig], ) -> Self
Auto Trait Implementations§
impl Freeze for SegmentLayout
impl RefUnwindSafe for SegmentLayout
impl Send for SegmentLayout
impl Sync for SegmentLayout
impl Unpin for SegmentLayout
impl UnsafeUnpin for SegmentLayout
impl UnwindSafe for SegmentLayout
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