pub struct Census { /* private fields */ }Expand description
The complete census assembled from deterministic shards.
Implementations§
Source§impl Census
impl Census
Sourcepub fn assemble(shards: Vec<CensusShard>) -> Result<Self, CensusError>
pub fn assemble(shards: Vec<CensusShard>) -> Result<Self, CensusError>
Assemble shards in stable shard and case order.
Sourcepub fn builtin(catalog: &Catalog) -> Result<Self, CensusError>
pub fn builtin(catalog: &Catalog) -> Result<Self, CensusError>
Derive the current surface from the canonical catalog, settings table, and WIR capability names owned by this crate.
pub fn shards(&self) -> &[CensusShard]
pub fn cases(&self) -> impl Iterator<Item = &CensusCase>
Sourcepub fn run(&self, catalog: &Catalog) -> CensusReport
pub fn run(&self, catalog: &Catalog) -> CensusReport
Execute all cases. No result state is dropped or converted to success.
Sourcepub fn identity(&self) -> CensusIdentity
pub fn identity(&self) -> CensusIdentity
Return the deterministic identity of this census definition.
Sourcepub fn export_json(&self) -> Result<String, CensusError>
pub fn export_json(&self) -> Result<String, CensusError>
Export shard definitions without executing them.
Trait Implementations§
impl Eq for Census
impl StructuralPartialEq for Census
Auto Trait Implementations§
impl Freeze for Census
impl RefUnwindSafe for Census
impl Send for Census
impl Sync for Census
impl Unpin for Census
impl UnsafeUnpin for Census
impl UnwindSafe for Census
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