RigidDiskBlock

Struct RigidDiskBlock 

Source
#[repr(C, packed(2))]
pub struct RigidDiskBlock {
Show 36 fields pub rdb_ID: ULONG, pub rdb_SummedLongs: ULONG, pub rdb_ChkSum: LONG, pub rdb_HostID: ULONG, pub rdb_BlockBytes: ULONG, pub rdb_Flags: ULONG, pub rdb_BadBlockList: ULONG, pub rdb_PartitionList: ULONG, pub rdb_FileSysHeaderList: ULONG, pub rdb_DriveInit: ULONG, pub rdb_Reserved1: [ULONG; 6], pub rdb_Cylinders: ULONG, pub rdb_Sectors: ULONG, pub rdb_Heads: ULONG, pub rdb_Interleave: ULONG, pub rdb_Park: ULONG, pub rdb_Reserved2: [ULONG; 3], pub rdb_WritePreComp: ULONG, pub rdb_ReducedWrite: ULONG, pub rdb_StepRate: ULONG, pub rdb_Reserved3: [ULONG; 5], pub rdb_RDBBlocksLo: ULONG, pub rdb_RDBBlocksHi: ULONG, pub rdb_LoCylinder: ULONG, pub rdb_HiCylinder: ULONG, pub rdb_CylBlocks: ULONG, pub rdb_AutoParkSeconds: ULONG, pub rdb_HighRDSKBlock: ULONG, pub rdb_Reserved4: ULONG, pub rdb_DiskVendor: [c_char; 8], pub rdb_DiskProduct: [c_char; 16], pub rdb_DiskRevision: [c_char; 4], pub rdb_ControllerVendor: [c_char; 8], pub rdb_ControllerProduct: [c_char; 16], pub rdb_ControllerRevision: [c_char; 4], pub rdb_DriveInitName: [c_char; 40],
}

Fields§

§rdb_ID: ULONG§rdb_SummedLongs: ULONG§rdb_ChkSum: LONG§rdb_HostID: ULONG§rdb_BlockBytes: ULONG§rdb_Flags: ULONG§rdb_BadBlockList: ULONG§rdb_PartitionList: ULONG§rdb_FileSysHeaderList: ULONG§rdb_DriveInit: ULONG§rdb_Reserved1: [ULONG; 6]§rdb_Cylinders: ULONG§rdb_Sectors: ULONG§rdb_Heads: ULONG§rdb_Interleave: ULONG§rdb_Park: ULONG§rdb_Reserved2: [ULONG; 3]§rdb_WritePreComp: ULONG§rdb_ReducedWrite: ULONG§rdb_StepRate: ULONG§rdb_Reserved3: [ULONG; 5]§rdb_RDBBlocksLo: ULONG§rdb_RDBBlocksHi: ULONG§rdb_LoCylinder: ULONG§rdb_HiCylinder: ULONG§rdb_CylBlocks: ULONG§rdb_AutoParkSeconds: ULONG§rdb_HighRDSKBlock: ULONG§rdb_Reserved4: ULONG§rdb_DiskVendor: [c_char; 8]§rdb_DiskProduct: [c_char; 16]§rdb_DiskRevision: [c_char; 4]§rdb_ControllerVendor: [c_char; 8]§rdb_ControllerProduct: [c_char; 16]§rdb_ControllerRevision: [c_char; 4]§rdb_DriveInitName: [c_char; 40]

Trait Implementations§

Source§

impl Clone for RigidDiskBlock

Source§

fn clone(&self) -> RigidDiskBlock

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RigidDiskBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for RigidDiskBlock

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.