pub struct RuntimeSizing {
pub components: usize,
pub slot_bytes: usize,
}Expand description
Per-image component-pool sizing — how many components the runtime can hold
and how much erased storage each one’s TypedSlot<C> gets.
slot_bytes is a BYTE budget rather than a type because the pool is
heterogeneous (TypedSlot<C> is generic over C) and the FFI seam cannot
name a generic. A component whose slot does not fit is a registration
error, not a compile error.
Fields§
§components: usizeComponent pool slots.
slot_bytes: usizeBytes of erased slot storage per component.
Implementations§
Source§impl RuntimeSizing
impl RuntimeSizing
Trait Implementations§
Source§impl Clone for RuntimeSizing
impl Clone for RuntimeSizing
Source§fn clone(&self) -> RuntimeSizing
fn clone(&self) -> RuntimeSizing
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RuntimeSizing
Source§impl Debug for RuntimeSizing
impl Debug for RuntimeSizing
Source§impl Default for RuntimeSizing
impl Default for RuntimeSizing
impl Eq for RuntimeSizing
Source§impl PartialEq for RuntimeSizing
impl PartialEq for RuntimeSizing
Source§fn eq(&self, other: &RuntimeSizing) -> bool
fn eq(&self, other: &RuntimeSizing) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeSizing
Auto Trait Implementations§
impl Freeze for RuntimeSizing
impl RefUnwindSafe for RuntimeSizing
impl Send for RuntimeSizing
impl Sync for RuntimeSizing
impl Unpin for RuntimeSizing
impl UnsafeUnpin for RuntimeSizing
impl UnwindSafe for RuntimeSizing
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