pub struct BaseRunner { /* private fields */ }Implementations§
Source§impl BaseRunner
impl BaseRunner
pub fn count(&self) -> &HashMap<DomainHash, u64>
pub fn indices(&self) -> &HashMap<DomainHash, HashMap<String, u64>>
pub fn rev_indices(&self) -> &HashMap<DomainHash, HashMap<u64, String>>
pub fn local_trust( &self, ) -> &HashMap<OwnedNamespace, BTreeMap<u64, OutboundLocalTrust>>
pub fn seed_trust(&self) -> &HashMap<OwnedNamespace, BTreeMap<u64, f32>>
pub fn lt_sub_trees( &self, ) -> &HashMap<DomainHash, HashMap<u64, DenseIncrementalMerkleTree<Keccak256>>>
pub fn lt_master_tree( &self, ) -> &HashMap<DomainHash, DenseIncrementalMerkleTree<Keccak256>>
pub fn st_master_tree( &self, ) -> &HashMap<DomainHash, DenseIncrementalMerkleTree<Keccak256>>
Source§impl BaseRunner
impl BaseRunner
pub fn new(domains: &[Domain]) -> Self
pub fn update_trust( &mut self, domain: Domain, trust_entries: Vec<TrustEntry>, ) -> Result<(), Error>
pub fn update_trust_map( &mut self, domain: Domain, trust_entries: Vec<TrustEntry>, ) -> Result<(), Error>
pub fn update_seed( &mut self, domain: Domain, seed_entries: Vec<ScoreEntry>, ) -> Result<(), Error>
pub fn update_seed_map( &mut self, domain: Domain, seed_entries: Vec<ScoreEntry>, ) -> Result<(), Error>
pub fn get_base_root_hashes(&self, domain: &Domain) -> Result<Hash, Error>
Auto Trait Implementations§
impl Freeze for BaseRunner
impl RefUnwindSafe for BaseRunner
impl Send for BaseRunner
impl Sync for BaseRunner
impl Unpin for BaseRunner
impl UnsafeUnpin for BaseRunner
impl UnwindSafe for BaseRunner
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more