Struct recovery_util_block::BlockDevice
source · 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
source§fn eq(&self, other: &BlockDevice) -> bool
fn eq(&self, other: &BlockDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)