[−][src]Struct crev_lib::proofdb::ProofDB
In memory database tracking information from proofs
After population, used for calculating the effcttive trust set, etc.
Right now, for every invocation of crev, we just load it up with all known proofs, and then query. If it ever becomes too slow, all the logic here will have to be moved to a real embedded db of some kind.
Methods
impl ProofDB
[src]
impl ProofDB
pub fn new() -> Self | [src] |
pub fn unique_package_review_proof_count(&self) -> usize | [src] |
pub fn unique_trust_proof_count(&self) -> usize | [src] |
pub fn get_package_review_count( | [src] |
pub fn get_package_reviews_for_package( | [src] |
pub fn all_known_ids(&self) -> BTreeSet<Id> | [src] |
pub fn all_author_ids(&self) -> BTreeMap<Id, usize> | [src] |
Get all Ids that authored a proof (with total count)
pub fn get_package_reviews_by_digest<'a>( | [src] |
pub fn verify_package_digest( | [src] |
pub fn import_from_iter( | [src] |
pub fn calculate_trust_set( | [src] |
pub fn lookup_url(&self, id: &Id) -> Option<&Url> | [src] |
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
fn clear(&mut self) |
impl<T> InitializableFromZeroed for T where
T: Default,
impl<T> InitializableFromZeroed for T where
T: Default,
unsafe fn initialize(place: *mut T) |