Struct libcoreinst::blockdev::Disk [−][src]
pub struct Disk {
pub path: String,
}Fields
path: StringImplementations
impl Disk[src]
impl Disk[src]pub fn new(path: &str) -> Result<Self>[src]
pub fn mount_partition_by_label(
&self,
label: &str,
allow_holder: bool,
flags: MsFlags
) -> Result<Mount>[src]
&self,
label: &str,
allow_holder: bool,
flags: MsFlags
) -> Result<Mount>
pub fn get_busy_partitions(self) -> Result<Vec<Partition>>[src]
pub fn get_busy_partitions(self) -> Result<Vec<Partition>>[src]Return an empty list if we have exclusive access to the device, or a list of partitions preventing us from gaining exclusive access.
pub fn get_partition_table(&self) -> Result<Box<dyn PartTable>>[src]
pub fn get_partition_table(&self) -> Result<Box<dyn PartTable>>[src]Get a handle to the set of device nodes for individual partitions of the device.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Disk
impl Send for Disk
impl Sync for Disk
impl Unpin for Disk
impl UnwindSafe for Disk
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,