Skip to main content

FileSource

Trait FileSource 

Source
pub trait FileSource {
    // Required method
    fn read(&self, file: &FileRef) -> Result<Vec<u8>, VerifyError>;
}
Expand description

Where package files are read from.

Required Methods§

Source

fn read(&self, file: &FileRef) -> Result<Vec<u8>, VerifyError>

Read file (the source may use its path or its hash).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§