pub struct BlockDeviceInfo {
pub total_sectors: u64,
pub sector_size: u32,
pub max_sectors_per_request: u32,
pub read_only: bool,
}Expand description
Block device information.
Fields§
§total_sectors: u64Total capacity in sectors
sector_size: u32Logical block (sector) size in bytes
max_sectors_per_request: u32Maximum sectors per request
read_only: boolWhether device is read-only
Trait Implementations§
Source§impl Clone for BlockDeviceInfo
impl Clone for BlockDeviceInfo
Source§fn clone(&self) -> BlockDeviceInfo
fn clone(&self) -> BlockDeviceInfo
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 moreSource§impl Debug for BlockDeviceInfo
impl Debug for BlockDeviceInfo
impl Copy for BlockDeviceInfo
Auto Trait Implementations§
impl Freeze for BlockDeviceInfo
impl RefUnwindSafe for BlockDeviceInfo
impl Send for BlockDeviceInfo
impl Sync for BlockDeviceInfo
impl Unpin for BlockDeviceInfo
impl UnwindSafe for BlockDeviceInfo
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