Struct fluvio_future::fs::mmap::MemoryMappedMutFile
source · pub struct MemoryMappedMutFile(_);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