Skip to main content

open

Function open 

Source
pub fn open(path: &Path) -> Result<OpenedImage, OpenError>
Expand description

Open path, sniff its container format, and return a decoded Read + Seek disk view: raw images pass through; E01/EWF is decoded; other recognized containers return OpenError::Unsupported.

§Errors

OpenError::Io on a read failure, OpenError::Ewf on a bad E01, or OpenError::Unsupported for a container whose decoder is not yet wired.