Struct avrox_storage::fs::File
source · pub struct File<'f, FS>where
FS: 'static + FileSystemRead,{ /* private fields */ }
Implementations§
source§impl<'f, FS> File<'f, FS>where
FS: FileSystemRead,
impl<'f, FS> File<'f, FS>where
FS: FileSystemRead,
source§impl<'f, FS> File<'f, FS>where
FS: FileSystemWrite,
impl<'f, FS> File<'f, FS>where
FS: FileSystemWrite,
sourcepub fn create_on<F: Into<&'f FS>, P: Into<FS::FID>>(
fs: F,
path: P
) -> FileSystemResult<File<'f, FS>>
pub fn create_on<F: Into<&'f FS>, P: Into<FS::FID>>( fs: F, path: P ) -> FileSystemResult<File<'f, FS>>
Create the identified file on the provided filesystem. The file will be created if it does not exist, if it does already exist it will be truncated. The file is opened in write-only mode.
pub fn sync_all(&self) -> FileSystemResult<()>
pub fn sync_data(&self) -> FileSystemResult<()>
pub fn set_len(&self, size: FileAddr) -> FileSystemResult<()>
Trait Implementations§
source§impl<'f, FS> Read for File<'f, FS>where
FS: FileSystemWrite,
impl<'f, FS> Read for File<'f, FS>where
FS: FileSystemWrite,
source§impl<'f, FS> Seek for File<'f, FS>where
FS: FileSystemWrite,
impl<'f, FS> Seek for File<'f, FS>where
FS: FileSystemWrite,
source§impl<'f, FS> Write for File<'f, FS>where
FS: FileSystemWrite,
impl<'f, FS> Write for File<'f, FS>where
FS: FileSystemWrite,
impl<'f, FS> Send for File<'f, FS>where
FS: 'static + FileSystemRead + Sync,
Auto Trait Implementations§
impl<'f, FS> Freeze for File<'f, FS>
impl<'f, FS> RefUnwindSafe for File<'f, FS>
impl<'f, FS> Sync for File<'f, FS>
impl<'f, FS> Unpin for File<'f, FS>
impl<'f, FS> UnwindSafe for File<'f, FS>
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