Skip to main content

read

Function read 

Source
pub fn read(
    path: impl AsRef<Path>,
    cap: &impl Has<FsRead>,
) -> Result<Vec<u8>, CapSecError>
Expand description

Reads the entire contents of a file into a byte vector. Requires FsRead permission.