pub struct DiskGeometry {
pub cylinders: i64,
pub media_type: u32,
pub tracks_per_cylinder: u32,
pub sectors_per_track: u32,
pub bytes_per_sector: u32,
}Expand description
Represents the geometry of a disk or physical drive.
Fields§
§cylinders: i64§media_type: u32§tracks_per_cylinder: u32§sectors_per_track: u32§bytes_per_sector: u32Implementations§
Trait Implementations§
Source§impl Clone for DiskGeometry
impl Clone for DiskGeometry
Source§fn clone(&self) -> DiskGeometry
fn clone(&self) -> DiskGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiskGeometry
impl Debug for DiskGeometry
Source§impl From<DISK_GEOMETRY> for DiskGeometry
impl From<DISK_GEOMETRY> for DiskGeometry
Source§fn from(geo: DISK_GEOMETRY) -> Self
fn from(geo: DISK_GEOMETRY) -> Self
Converts to this type from the input type.
impl Copy for DiskGeometry
Auto Trait Implementations§
impl Freeze for DiskGeometry
impl RefUnwindSafe for DiskGeometry
impl Send for DiskGeometry
impl Sync for DiskGeometry
impl Unpin for DiskGeometry
impl UnsafeUnpin for DiskGeometry
impl UnwindSafe for DiskGeometry
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