Skip to main content

ContentLoader

Trait ContentLoader 

Source
pub trait ContentLoader: Send + Sync {
    // Required method
    fn load(
        &self,
        expected: FileStamp,
    ) -> Result<CapturedContent, ContentLoadError>;
}
Expand description

Capability-scoped provider for one lazily captured snapshot node.

Implementations must open relative to their already-authorized root and must not follow a different node in place of the expected one. VSH independently verifies the returned before/after stamps and byte length.

Required Methods§

Source

fn load(&self, expected: FileStamp) -> Result<CapturedContent, ContentLoadError>

Capture stable content for expected.

§Errors

Returns ContentLoadError when the host read cannot be completed safely.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§