pub struct PosixLockedPageAllocator { /* private fields */ }Expand description
| LockedPageAllocator specialized | for OSes that don’t try to be special | snowflakes. |
Trait Implementations§
source§impl AllocateLocked for PosixLockedPageAllocator
impl AllocateLocked for PosixLockedPageAllocator
source§fn allocate_locked(&mut self, _len: usize, _locking_success: *mut bool)
fn allocate_locked(&mut self, _len: usize, _locking_success: *mut bool)
| Allocate and lock memory pages.
|
| If len is not a multiple of the system
| page size, it is rounded up.
|
| Returns nullptr in case of allocation
| failure.
|
| If locking the memory pages could not
| be accomplished it will still return
| the memory, however the lockingSuccess
| flag will be false. lockingSuccess
| is undefined if the allocation fails.
|
source§impl Default for PosixLockedPageAllocator
impl Default for PosixLockedPageAllocator
source§impl GetLimit for PosixLockedPageAllocator
impl GetLimit for PosixLockedPageAllocator
impl LockedPageAllocator for PosixLockedPageAllocator
Auto Trait Implementations§
impl RefUnwindSafe for PosixLockedPageAllocator
impl Send for PosixLockedPageAllocator
impl Sync for PosixLockedPageAllocator
impl Unpin for PosixLockedPageAllocator
impl UnwindSafe for PosixLockedPageAllocator
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more