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§
Sourcefn load(&self, expected: FileStamp) -> Result<CapturedContent, ContentLoadError>
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".