#[repr(u32)]pub enum ET_ModuleLoadMode {
ET_ModuleLoadMode_File = 0,
ET_ModuleLoadMode_Mmap = 1,
ET_ModuleLoadMode_MmapUseMlock = 2,
ET_ModuleLoadMode_MmapUseMlockIgnoreErrors = 3,
ET_ModuleLoadMode_MmapUseMadvise = 4,
}Expand description
Enum to define loading behavior.
Variants§
ET_ModuleLoadMode_File = 0
Load the whole file as a buffer.
ET_ModuleLoadMode_Mmap = 1
Use mmap to load pages into memory.
ET_ModuleLoadMode_MmapUseMlock = 2
Use memory locking and handle errors.
ET_ModuleLoadMode_MmapUseMlockIgnoreErrors = 3
Use memory locking and ignore errors.
ET_ModuleLoadMode_MmapUseMadvise = 4
Use mmap with madvise(MADV_WILLNEED | MADV_SEQUENTIAL) hints.
Trait Implementations§
Source§impl Clone for ET_ModuleLoadMode
impl Clone for ET_ModuleLoadMode
Source§fn clone(&self) -> ET_ModuleLoadMode
fn clone(&self) -> ET_ModuleLoadMode
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 ET_ModuleLoadMode
Source§impl Debug for ET_ModuleLoadMode
impl Debug for ET_ModuleLoadMode
impl Eq for ET_ModuleLoadMode
Source§impl ExternType for ET_ModuleLoadMode
Available on crate features module and std only.
impl ExternType for ET_ModuleLoadMode
Available on crate features
module and std only.Source§impl Hash for ET_ModuleLoadMode
impl Hash for ET_ModuleLoadMode
Source§impl PartialEq for ET_ModuleLoadMode
impl PartialEq for ET_ModuleLoadMode
impl StructuralPartialEq for ET_ModuleLoadMode
Auto Trait Implementations§
impl Freeze for ET_ModuleLoadMode
impl RefUnwindSafe for ET_ModuleLoadMode
impl Send for ET_ModuleLoadMode
impl Sync for ET_ModuleLoadMode
impl Unpin for ET_ModuleLoadMode
impl UnsafeUnpin for ET_ModuleLoadMode
impl UnwindSafe for ET_ModuleLoadMode
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