[−][src]Struct libcoreinst::blockdev::SavedPartitions
Implementations
impl SavedPartitions[src]
pub fn new_from_disk(
disk: &mut File,
filters: &[PartitionFilter]
) -> Result<Self>[src]
disk: &mut File,
filters: &[PartitionFilter]
) -> Result<Self>
Create a SavedPartitions for a block device with a sector size.
pub fn overwrite(&self, disk: &mut File) -> Result<()>[src]
Unconditionally write the saved partitions, and only the saved partitions, to the disk. Updating the kernel partition table is the caller's responsibility.
pub fn merge(
&self,
source: &mut impl Read + Seek,
disk: &mut File
) -> Result<()>[src]
&self,
source: &mut impl Read + Seek,
disk: &mut File
) -> Result<()>
If any partitions are saved, merge them into the GPT from source, which must be valid. Updating the kernel partition table is the caller's responsibility.
pub fn get_offset(&self) -> Result<Option<(u64, String)>>[src]
Get the byte offset of the first byte not to be overwritten, if any, plus a description of the partition at that offset.
pub fn is_saved(&self) -> bool[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SavedPartitions
impl Send for SavedPartitions
impl Sync for SavedPartitions
impl Unpin for SavedPartitions
impl UnwindSafe for SavedPartitions
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,