pub struct Vhdx { /* private fields */ }Expand description
A VHDX file with all metadata loaded in-memory.
Implementations§
Source§impl Vhdx
impl Vhdx
Sourcepub fn load(path: impl AsRef<Path>) -> Vhdx
pub fn load(path: impl AsRef<Path>) -> Vhdx
Load a VHDX file from the filesystem.
Through opening the file, if there is a log to be replayed it will be applied during this function.
Sourcepub fn reader(&mut self) -> Reader<'_> ⓘ
pub fn reader(&mut self) -> Reader<'_> ⓘ
Use the disk as a Reader that implements std::io::Read and std::io::Seek.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Vhdx
impl RefUnwindSafe for Vhdx
impl Send for Vhdx
impl Sync for Vhdx
impl Unpin for Vhdx
impl UnsafeUnpin for Vhdx
impl UnwindSafe for Vhdx
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