Skip to main content

ManifestObjectIndex

Trait ManifestObjectIndex 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl ManifestObjectIndex for BTreeMap<ManifestKey, u64>

Source§

impl ManifestObjectIndex for HashMap<ManifestKey, u64>

Implementors§