#[repr(u32)]pub enum uct_alloc_method_t {
UCT_ALLOC_METHOD_THP = 0,
UCT_ALLOC_METHOD_MD = 1,
UCT_ALLOC_METHOD_HEAP = 2,
UCT_ALLOC_METHOD_MMAP = 3,
UCT_ALLOC_METHOD_HUGE = 4,
UCT_ALLOC_METHOD_LAST = 5,
}Expand description
@ingroup UCT_CONTEXT @brief Memory allocation methods.
Variants§
UCT_ALLOC_METHOD_THP = 0
< Allocate from OS using libc allocator with Transparent Huge Pages enabled
UCT_ALLOC_METHOD_MD = 1
< Allocate using memory domain
UCT_ALLOC_METHOD_HEAP = 2
< Allocate from heap using libc allocator
UCT_ALLOC_METHOD_MMAP = 3
< Allocate from OS using mmap() syscall
UCT_ALLOC_METHOD_HUGE = 4
< Allocate huge pages
UCT_ALLOC_METHOD_LAST = 5
Implementations§
Source§impl uct_alloc_method_t
impl uct_alloc_method_t
pub const UCT_ALLOC_METHOD_DEFAULT: uct_alloc_method_t = uct_alloc_method_t::UCT_ALLOC_METHOD_LAST
Trait Implementations§
Source§impl Clone for uct_alloc_method_t
impl Clone for uct_alloc_method_t
Source§fn clone(&self) -> uct_alloc_method_t
fn clone(&self) -> uct_alloc_method_t
Returns a copy 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 uct_alloc_method_t
impl Debug for uct_alloc_method_t
Source§impl Hash for uct_alloc_method_t
impl Hash for uct_alloc_method_t
Source§impl PartialEq for uct_alloc_method_t
impl PartialEq for uct_alloc_method_t
impl Copy for uct_alloc_method_t
impl Eq for uct_alloc_method_t
impl StructuralPartialEq for uct_alloc_method_t
Auto Trait Implementations§
impl Freeze for uct_alloc_method_t
impl RefUnwindSafe for uct_alloc_method_t
impl Send for uct_alloc_method_t
impl Sync for uct_alloc_method_t
impl Unpin for uct_alloc_method_t
impl UnwindSafe for uct_alloc_method_t
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