[][src]Struct fat32::file::File

pub struct File<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
{ /* fields omitted */ }

Implementations

impl<'a, T> File<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
[src]

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]

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]

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]

impl<'a, T: Copy> Copy for File<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
[src]

impl<'a, T: Debug> Debug for File<'a, T> where
    T: BlockDevice + Clone + Copy,
    <T as BlockDevice>::Error: Debug
[src]

Auto Trait Implementations

impl<'a, T> Send for File<'a, T> where
    T: Send

impl<'a, T> Sync for File<'a, T> where
    T: Sync

impl<'a, T> Unpin for File<'a, T> where
    T: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.