pub struct VfsFile { /* private fields */ }Implementations§
Source§impl VfsFile
impl VfsFile
pub fn path(&self) -> Option<String>
pub fn size(&self) -> Option<i64>
pub fn truncate(&mut self, length: i64) -> bool
pub fn tell(&self) -> Option<i64>
pub fn seek(&mut self, offset: i64, position: VfsSeekPosition) -> Option<i64>
pub fn read(&mut self, buffer: &mut [u8]) -> Option<usize>
pub fn write(&mut self, buffer: &[u8]) -> Option<usize>
pub fn flush(&mut self) -> bool
pub fn close(self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VfsFile
impl RefUnwindSafe for VfsFile
impl !Send for VfsFile
impl !Sync for VfsFile
impl Unpin for VfsFile
impl UnsafeUnpin for VfsFile
impl UnwindSafe for VfsFile
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