pub struct FileSystemFrame<'a, R> { /* private fields */ }

Implementations§

source§

impl<'a, R: Read + Seek + IO> FileSystemFrame<'a, R>

source

pub fn super_block( &mut self ) -> Result<<Superblock as ApplyLayout<'_, R>>::Frame, R::Error>

source

pub fn all_super_block(&mut self) -> Result<Superblock, R::Error>

source

pub fn fat( &mut self ) -> Result<<Box<[FATEntry]> as ApplyLayout<'_, R>>::Frame, R::Error>

source

pub fn all_fat(&mut self) -> Result<Box<[FATEntry]>, R::Error>

source

pub fn super_block_cp( &mut self ) -> Result<<Superblock as ApplyLayout<'_, R>>::Frame, R::Error>

source

pub fn all_super_block_cp(&mut self) -> Result<Superblock, R::Error>

source

pub fn obj_lookup( &mut self ) -> Result<<Box<[FATEntry]> as ApplyLayout<'_, R>>::Frame, R::Error>

source

pub fn all_obj_lookup(&mut self) -> Result<Box<[FATEntry]>, R::Error>

source

pub fn rest( &mut self ) -> Result<<RawBytes as ApplyLayout<'_, R>>::Frame, R::Error>

source

pub fn all_rest(&mut self) -> Result<RawBytes, R::Error>

source§

impl<'a, W: Write + Read + Seek + IO> FileSystemFrame<'a, W>

source

pub fn set_super_block(&mut self, data: &Superblock) -> Result<(), W::Error>

source

pub fn set_fat(&mut self, data: &Box<[FATEntry]>) -> Result<(), W::Error>

source

pub fn set_super_block_cp(&mut self, data: &Superblock) -> Result<(), W::Error>

source

pub fn set_obj_lookup(&mut self, data: &Box<[FATEntry]>) -> Result<(), W::Error>

source

pub fn set_rest(&mut self, data: &RawBytes) -> Result<(), W::Error>

Trait Implementations§

source§

impl<'a, R> Frame<R> for FileSystemFrame<'a, R>

source§

fn stream(&mut self) -> &mut R

source§

fn offset(&self) -> u64

source§

impl<'a, S> FramedDynamic<S> for FileSystemFrame<'a, S>where S: Read + Seek + IO,

source§

fn framed_size(&mut self) -> Result<u64, S::Error>

Auto Trait Implementations§

§

impl<'a, R> !ObjSafe for FileSystemFrame<'a, R>

§

impl<'a, R> RefUnwindSafe for FileSystemFrame<'a, R>where R: RefUnwindSafe,

§

impl<'a, R> Send for FileSystemFrame<'a, R>where R: Send,

§

impl<'a, R> Sync for FileSystemFrame<'a, R>where R: Sync,

§

impl<'a, R> Unpin for FileSystemFrame<'a, R>

§

impl<'a, R> !UnwindSafe for FileSystemFrame<'a, R>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.