pub struct MemoryConfig {
pub mem_size: u64,
pub prefetch_memory: bool,
pub private_memory: bool,
pub transparent_hugepages: bool,
pub hugepages: bool,
pub hugepage_size: Option<u64>,
pub host_numa_node: Option<u32>,
}Expand description
Per-node memory allocation configuration.
Fields§
§mem_size: u64§prefetch_memory: bool§private_memory: bool§transparent_hugepages: bool§hugepages: bool§hugepage_size: Option<u64>§host_numa_node: Option<u32>Host physical NUMA node to bind this allocation to (Linux:
mbind(MPOL_BIND)). None means OS default placement.
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryConfig
impl Debug for MemoryConfig
Source§impl DefaultEncoding for MemoryConfig
impl DefaultEncoding for MemoryConfig
Source§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for MemoryConfig
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for MemoryConfig
Source§impl StructEncodeMetadata<Resource> for MemoryConfig
impl StructEncodeMetadata<Resource> for MemoryConfig
Source§impl StructMetadata for MemoryConfig
impl StructMetadata for MemoryConfig
impl Copy for MemoryConfig
Auto Trait Implementations§
impl Freeze for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnsafeUnpin for MemoryConfig
impl UnwindSafe for MemoryConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message].