sapling/eden/mononoke/derived_data/fsnodes/lib.rs
Mark Juggurnauth-Thomas 1e288e8ea4 fsnodes: clean-up new async code
Summary:
Now that fsnodes is async, convert more functions to use references, and tidy
up imports and type names.

Reviewed By: krallin

Differential Revision: D24726145

fbshipit-source-id: 75a619777f19754daf494a3743d26fa2e77aef54
2020-11-04 08:39:57 -08:00

31 lines
764 B
Rust

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#![deny(warnings)]
use mononoke_types::{ContentId, FsnodeId};
use thiserror::Error;
mod batch;
mod derive;
mod mapping;
pub use derive::prefetch_content_metadata;
pub use mapping::{RootFsnodeId, RootFsnodeMapping};
#[derive(Debug, Error)]
pub enum FsnodeDerivationError {
#[error("Invalid bonsai changeset: {0}")]
InvalidBonsai(String),
#[error("Missing content: {0}")]
MissingContent(ContentId),
#[error("Missing fsnode parent: {0}")]
MissingParent(FsnodeId),
#[error("Missing fsnode subentry for '{0}': {1}")]
MissingSubentry(String, FsnodeId),
}