#[repr(u32)]pub enum ucp_mem_advice {
UCP_MADV_NORMAL = 0,
UCP_MADV_WILLNEED = 1,
}Expand description
@ingroup UCP_MEM @brief list of UCP memory use advice.
The enumeration list describes memory advice supported by @ref ucp_mem_advise() function.
Variants§
UCP_MADV_NORMAL = 0
< No special treatment
UCP_MADV_WILLNEED = 1
< can be used on the memory mapped with @ref UCP_MEM_MAP_NONBLOCK to speed up memory mapping and to avoid page faults when the memory is accessed for the first time.
Trait Implementations§
Source§impl Clone for ucp_mem_advice
impl Clone for ucp_mem_advice
Source§fn clone(&self) -> ucp_mem_advice
fn clone(&self) -> ucp_mem_advice
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 ucp_mem_advice
impl Debug for ucp_mem_advice
Source§impl Hash for ucp_mem_advice
impl Hash for ucp_mem_advice
Source§impl PartialEq for ucp_mem_advice
impl PartialEq for ucp_mem_advice
impl Copy for ucp_mem_advice
impl Eq for ucp_mem_advice
impl StructuralPartialEq for ucp_mem_advice
Auto Trait Implementations§
impl Freeze for ucp_mem_advice
impl RefUnwindSafe for ucp_mem_advice
impl Send for ucp_mem_advice
impl Sync for ucp_mem_advice
impl Unpin for ucp_mem_advice
impl UnwindSafe for ucp_mem_advice
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