pub trait ManifestObjectIndex {
// Required method
fn decoded_size(&self, key: &ManifestKey) -> Option<u64>;
}Expand description
The set of content objects a manifest may legally name, with their decoded sizes.
Supplying an index turns on the dangling-object and size rules. Omitting it checks manifest structure alone, which is what a receiver that has the manifest but not yet the bodies can do.
Required Methods§
Sourcefn decoded_size(&self, key: &ManifestKey) -> Option<u64>
fn decoded_size(&self, key: &ManifestKey) -> Option<u64>
Decoded size of key, or None if the object is absent.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".