pub struct GhostFat<'a, const BLOCK_SIZE: usize = 512> { /* private fields */ }
Expand description
Virtual FAT16 File System
Implementations
Trait Implementations
sourceimpl<'a, const BLOCK_SIZE: usize> BlockDevice for GhostFat<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize> BlockDevice for GhostFat<'a, BLOCK_SIZE>
BlockDevice
implementation for use with usbd_scsi
sourcefn read_block(&self, lba: u32, block: &mut [u8]) -> Result<(), BlockDeviceError>
fn read_block(&self, lba: u32, block: &mut [u8]) -> Result<(), BlockDeviceError>
Read a file system block
sourcefn write_block(&mut self, lba: u32, block: &[u8]) -> Result<(), BlockDeviceError>
fn write_block(&mut self, lba: u32, block: &[u8]) -> Result<(), BlockDeviceError>
Write a file system block
sourceconst BLOCK_BYTES: usize = BLOCK_SIZE
const BLOCK_BYTES: usize = BLOCK_SIZE
The number of bytes per block. This determines the size of the buffer passed
to read/write functions Read more
Auto Trait Implementations
impl<'a, const BLOCK_SIZE: usize = 512> !RefUnwindSafe for GhostFat<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize> Send for GhostFat<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize> Sync for GhostFat<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize> Unpin for GhostFat<'a, BLOCK_SIZE>
impl<'a, const BLOCK_SIZE: usize = 512> !UnwindSafe for GhostFat<'a, BLOCK_SIZE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more