pub struct InboxGeometry {
pub capacity: usize,
pub payload_capacity: usize,
}Expand description
A lane’s geometry, shared by both ends because Orbit refuses to open a segment shaped differently from the code’s.
Fields§
§capacity: usize§payload_capacity: usizeImplementations§
Source§impl InboxGeometry
impl InboxGeometry
pub const fn new(capacity: usize, payload_capacity: usize) -> Self
Sourcepub const fn lane_bytes(&self) -> usize
pub const fn lane_bytes(&self) -> usize
Bytes one lane occupies: its header, then a slot header and payload for every position.
Sourcepub const fn segment_bytes(&self, fleet_capacity: usize) -> usize
pub const fn segment_bytes(&self, fleet_capacity: usize) -> usize
What a fleet’s whole table occupies: the header, every lane, one watcher slot per lane, then one interest entry per lane and per watcher slot. Everything new sits after the lanes, so a lane’s offset and alignment are what they were before.
Trait Implementations§
Source§impl Clone for InboxGeometry
impl Clone for InboxGeometry
impl Copy for InboxGeometry
Source§impl Debug for InboxGeometry
impl Debug for InboxGeometry
impl Eq for InboxGeometry
Source§impl PartialEq for InboxGeometry
impl PartialEq for InboxGeometry
impl StructuralPartialEq for InboxGeometry
Auto Trait Implementations§
impl Forget for InboxGeometry
impl Freeze for InboxGeometry
impl Move for InboxGeometry
impl RefUnwindSafe for InboxGeometry
impl Send for InboxGeometry
impl Sync for InboxGeometry
impl Unpin for InboxGeometry
impl UnsafeUnpin for InboxGeometry
impl UnwindSafe for InboxGeometry
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