Struct ostree_ext::chunking::ObjectMetaSized
source · pub struct ObjectMetaSized {
pub map: ObjectMetaMap,
pub sizes: Vec<ObjectSourceMetaSized>,
}Expand description
Extend content source metadata with sizes.
Fields§
§map: ObjectMetaMapMapping from content object to source.
sizes: Vec<ObjectSourceMetaSized>Computed sizes of each content source
Implementations§
source§impl ObjectMetaSized
impl ObjectMetaSized
sourcepub fn compute_sizes(repo: &Repo, meta: ObjectMeta) -> Result<ObjectMetaSized>
pub fn compute_sizes(repo: &Repo, meta: ObjectMeta) -> Result<ObjectMetaSized>
Given object metadata and a repo, compute the size of each content source.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ObjectMetaSized
impl !Send for ObjectMetaSized
impl !Sync for ObjectMetaSized
impl Unpin for ObjectMetaSized
impl UnwindSafe for ObjectMetaSized
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more