#[repr(C, packed(1))]pub struct BootSector {
pub crap_0: [u8; 11],
pub sector_size: u16,
pub sectors_per_cluster: u8,
pub crap_1: [u8; 26],
pub total_sectors: u64,
pub mft_lcn: u64,
pub mft_lcn_mirror: u64,
pub file_record_size_info: i8,
pub crap_2: [u8; 447],
}
Fields§
§crap_0: [u8; 11]
§sector_size: u16
§sectors_per_cluster: u8
§crap_1: [u8; 26]
§total_sectors: u64
§mft_lcn: u64
§mft_lcn_mirror: u64
§file_record_size_info: i8
§crap_2: [u8; 447]
Trait Implementations§
Source§impl BinRead for BootSector
impl BinRead for BootSector
Source§type Args = ()
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
Source§fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binread_generated_var_reader: &mut R, __binread_generated_var_options: &ReadOptions, __binread_generated_var_arguments: Self::Args, ) -> BinResult<Self>
Read the type from the reader
Source§fn read<R>(reader: &mut R) -> Result<Self, Error>
fn read<R>(reader: &mut R) -> Result<Self, Error>
Read the type from the reader while assuming no arguments have been passed Read more
Source§fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>
fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>
Read the type from the reader using the specified arguments
fn after_parse<R>( &mut self, _: &mut R, _: &ReadOptions, _: Self::Args, ) -> Result<(), Error>
Source§impl Clone for BootSector
impl Clone for BootSector
Source§fn clone(&self) -> BootSector
fn clone(&self) -> BootSector
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for BootSector
Auto Trait Implementations§
impl Freeze for BootSector
impl RefUnwindSafe for BootSector
impl Send for BootSector
impl Sync for BootSector
impl Unpin for BootSector
impl UnwindSafe for BootSector
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