Struct ntfs_reader::api::BootSector
source · #[repr(C, packed)]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
sourceimpl BinRead for BootSector
impl BinRead for BootSector
type Args = ()
type Args = ()
The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more
sourcefn 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
sourcefn read<R>(reader: &mut R) -> Result<Self, Error>where
R: Read + Seek,
fn read<R>(reader: &mut R) -> Result<Self, Error>where
R: Read + Seek,
Read the type from the reader while assuming no arguments have been passed Read more
sourcefn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>where
R: Read + Seek,
fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error>where
R: Read + Seek,
Read the type from the reader using the specified arguments
fn after_parse<R>(
&mut self,
_: &mut R,
_: &ReadOptions,
_: Self::Args
) -> Result<(), Error>where
R: Read + Seek,
sourceimpl Clone for BootSector
impl Clone for BootSector
sourcefn clone(&self) -> BootSector
fn clone(&self) -> BootSector
Returns a copy of the value. Read more
1.0.0 · sourcefn 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 RefUnwindSafe for BootSector
impl Send for BootSector
impl Sync for BootSector
impl Unpin for BootSector
impl UnwindSafe for BootSector
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