pub struct File { /* private fields */ }Implementations§
Source§impl File
impl File
Sourcepub unsafe fn with_descriptor(descriptor: u32) -> Self
pub unsafe fn with_descriptor(descriptor: u32) -> Self
§Safety
The descriptor must be valid
pub fn read_with_timestamp<T: FileSystemRead + ?Sized>( &self, fs: &mut T, buffer: &mut [u8], time: UtcTime, ) -> Result<usize, ()>
pub fn write_with_timestamp<T: FileSystemWrite + ?Sized>( &self, fs: &mut T, buffer: &[u8], time: UtcTime, ) -> Result<usize, ()>
pub fn read<T: FileSystemRead + ?Sized>( &self, fs: &mut T, buffer: &mut [u8], ) -> Result<usize, ()>
pub fn write<T: FileSystemWrite + ?Sized>( &self, fs: &mut T, buffer: &[u8], ) -> Result<usize, ()>
pub fn descriptor(&self) -> u32
pub fn seek(&self) -> u32
pub fn set_seek(&self, seek: u32)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for File
impl !RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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