[−][src]Struct fat32::file::File
Implementations
impl<'a, T> File<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
[src]
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
pub fn read(&self, buf: &mut [u8]) -> Result<usize, FileError>
[src]
Read File To Buffer, Return File Length
pub fn write(
&mut self,
buf: &[u8],
write_type: WriteType
) -> Result<(), FileError>
[src]
&mut self,
buf: &[u8],
write_type: WriteType
) -> Result<(), FileError>
Write Data To File, Using Append OR OverWritten
pub fn read_per_sector(&self) -> ReadIter<'_, T>ⓘNotable traits for ReadIter<'a, T>
impl<'a, T> Iterator for ReadIter<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug, type Item = ([u8; 512], usize);
[src]
Notable traits for ReadIter<'a, T>
impl<'a, T> Iterator for ReadIter<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug, type Item = ([u8; 512], usize);
Read Per Sector, Return ReadIter
Trait Implementations
impl<'a, T: Clone> Clone for File<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
[src]
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
fn clone(&self) -> File<'a, T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T: Copy> Copy for File<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
[src]
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
impl<'a, T: Debug> Debug for File<'a, T> where
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
[src]
T: BlockDevice + Clone + Copy,
<T as BlockDevice>::Error: Debug,
Auto Trait Implementations
impl<'a, T> Send for File<'a, T> where
T: Send,
T: Send,
impl<'a, T> Sync for File<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for File<'a, T> where
T: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,