pub struct DiskCapacity {
pub last_lba: u32,
pub block_size: u32,
pub total_bytes: u64,
}Expand description
Disk capacity from READ CAPACITY (10) response.
Fields§
§last_lba: u32Last logical block address.
block_size: u32Block size in bytes.
total_bytes: u64Total capacity in bytes.
Trait Implementations§
Source§impl Clone for DiskCapacity
impl Clone for DiskCapacity
Source§fn clone(&self) -> DiskCapacity
fn clone(&self) -> DiskCapacity
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiskCapacity
impl Debug for DiskCapacity
impl Copy for DiskCapacity
Auto Trait Implementations§
impl Freeze for DiskCapacity
impl RefUnwindSafe for DiskCapacity
impl Send for DiskCapacity
impl Sync for DiskCapacity
impl Unpin for DiskCapacity
impl UnwindSafe for DiskCapacity
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)