pub struct MemoryMappedMutFile(/* private fields */);Expand description
Mutable async wrapper for MmapMut
Implementations§
Source§impl MemoryMappedMutFile
impl MemoryMappedMutFile
pub async fn create(m_path: &Path, len: u64) -> Result<(Self, File), IoError>
pub fn inner(&self) -> RwLockReadGuard<'_, MmapMut>
pub fn inner_map(&self) -> Arc<RwLock<MmapMut>>
pub fn mut_inner(&self) -> RwLockWriteGuard<'_, MmapMut>
Sourcepub fn write_bytes(&mut self, pos: usize, bytes: &[u8])
pub fn write_bytes(&mut self, pos: usize, bytes: &[u8])
write bytes at location, return number bytes written
pub async fn flush_ft(&self) -> Result<(), IoError>
pub async fn flush_async_ft(&self) -> Result<(), IoError>
pub async fn flush_range_ft( &self, offset: usize, len: usize, ) -> Result<(), IoError>
Auto Trait Implementations§
impl Freeze for MemoryMappedMutFile
impl RefUnwindSafe for MemoryMappedMutFile
impl Send for MemoryMappedMutFile
impl Sync for MemoryMappedMutFile
impl Unpin for MemoryMappedMutFile
impl UnsafeUnpin for MemoryMappedMutFile
impl UnwindSafe for MemoryMappedMutFile
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