pub struct MemoryMappedFile { /* private fields */ }Implementations§
Source§impl MemoryMappedFile
impl MemoryMappedFile
pub unsafe fn new(file: File, len: usize, write: bool) -> Result<Self>
pub unsafe fn anonymous(len: usize) -> Result<Self>
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn as_ptr(&self) -> *const u8
pub fn as_mut_ptr(&mut self) -> *mut u8
pub fn advise(&self, advice: i32) -> Result<()>
pub fn sync(&self, sync_flags: i32) -> Result<()>
pub fn len(&self) -> usize
Trait Implementations§
Source§impl Drop for MemoryMappedFile
impl Drop for MemoryMappedFile
Auto Trait Implementations§
impl !Send for MemoryMappedFile
impl !Sync for MemoryMappedFile
impl Freeze for MemoryMappedFile
impl RefUnwindSafe for MemoryMappedFile
impl Unpin for MemoryMappedFile
impl UnsafeUnpin for MemoryMappedFile
impl UnwindSafe for MemoryMappedFile
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