pub struct MemoryFile { /* private fields */ }Expand description
A handle to one in-memory file.
Trait Implementations§
Source§impl Drop for MemoryFile
impl Drop for MemoryFile
Source§impl File for MemoryFile
impl File for MemoryFile
Source§fn write_all_at(&mut self, buf: &[u8], offset: u64) -> Result<()>
fn write_all_at(&mut self, buf: &[u8], offset: u64) -> Result<()>
Write all of
buf to the file starting at byte offset, extending the
file if necessary.Source§fn truncate(&mut self, size: u64) -> Result<()>
fn truncate(&mut self, size: u64) -> Result<()>
Truncate or extend the file to exactly
size bytes.Auto Trait Implementations§
impl !RefUnwindSafe for MemoryFile
impl !Send for MemoryFile
impl !Sync for MemoryFile
impl !UnwindSafe for MemoryFile
impl Freeze for MemoryFile
impl Unpin for MemoryFile
impl UnsafeUnpin for MemoryFile
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