Skip to main content

read

Function read 

Source
pub fn read(
    source: &dyn ReleaseSource,
    manifest: &ReleaseManifest,
    path: &str,
) -> Result<Vec<u8>, RkError>
Expand description

The bytes of one artifact by path, through the manifest.

§Errors

Returns RkError::NotFound for a path the manifest does not name, and the source’s failures otherwise.