pub trait DiskFile:
FileSetLen
+ DiskGetLen
+ FileReadWriteAtVolatile
+ ToAsyncDisk
+ Send
+ AsRawDescriptors
+ Debug {
// Provided method
fn try_clone(&self) -> Result<Box<dyn DiskFile>> { ... }
}Expand description
The prerequisites necessary to support a block device.
Provided Methods§
Sourcefn try_clone(&self) -> Result<Box<dyn DiskFile>>
fn try_clone(&self) -> Result<Box<dyn DiskFile>>
Creates a new DiskFile instance that shares the same underlying disk file image. IO operations to a DiskFile should affect all DiskFile instances with the same underlying disk file image.
try_clone() returns io::ErrorKind::Unsupported Error if a DiskFile does not support
creating an instance with the same underlying disk file image.