Struct fluvio_future::fs::mmap::MemoryMappedMutFile
source · 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 RefUnwindSafe for MemoryMappedMutFile
impl Send for MemoryMappedMutFile
impl Sync for MemoryMappedMutFile
impl Unpin 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