pub struct BlockDevice {
pub topo_path: String,
pub class_path: String,
pub size: u64,
}
Fields§
§topo_path: String
Topological path of the block device.
class_path: String
Path to the block device under /dev/class/block.
size: u64
Size of the block device, in bytes.
Implementations§
Trait Implementations§
Source§impl Clone for BlockDevice
impl Clone for BlockDevice
Source§fn clone(&self) -> BlockDevice
fn clone(&self) -> BlockDevice
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 BlockDevice
impl Debug for BlockDevice
Source§impl PartialEq for BlockDevice
impl PartialEq for BlockDevice
impl StructuralPartialEq for BlockDevice
Auto Trait Implementations§
impl Freeze for BlockDevice
impl RefUnwindSafe for BlockDevice
impl Send for BlockDevice
impl Sync for BlockDevice
impl Unpin for BlockDevice
impl UnwindSafe for BlockDevice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)