pub struct ResponderState {
pub config: Config,
/* private fields */
}Expand description
The responder’s loaded state: bundles indexed by CA scope, with persistent anti-rollback state.
Fields§
§config: ConfigImplementations§
Source§impl ResponderState
impl ResponderState
pub fn load(config: Config) -> Result<Self>
Sourcepub fn lookup(
&self,
cert_id: &ParsedCertId,
preferred_algs: &[u16],
) -> Option<LookupResult>
pub fn lookup( &self, cert_id: &ParsedCertId, preferred_algs: &[u16], ) -> Option<LookupResult>
Look up a CertID across all loaded CA scopes.
Routes by (issuerNameHash, issuerKeyHash) to find candidate bundles, then searches each by entry_key. On collision (multiple bundles hold an entry for the same serial), logs a warning and returns the first by configuration order.
Sourcepub fn default_window(&self) -> Option<Window>
pub fn default_window(&self) -> Option<Window>
Get the first loaded bundle’s window (for backward compatibility
with single-CA deployments). Prefer LookupResult.window when
a specific lookup succeeded.
Sourcepub fn total_entries(&self) -> u64
pub fn total_entries(&self) -> u64
Total entry count across all loaded bundles.
Sourcepub fn bundle_count(&self) -> usize
pub fn bundle_count(&self) -> usize
Number of loaded bundles.
Sourcepub fn scope_count(&self) -> usize
pub fn scope_count(&self) -> usize
Scope count (number of distinct routing keys).
Sourcepub fn scope_info(&self) -> Vec<(String, u64, String)>
pub fn scope_info(&self) -> Vec<(String, u64, String)>
Get info about all loaded scopes for diagnostics.
Sourcepub fn bundle_scopes(&self) -> Vec<ScopeDetail>
pub fn bundle_scopes(&self) -> Vec<ScopeDetail>
Per-bundle scope details (label, epoch, completeness, entry count, and
the bundle’s own validity window). Prefer this over scope_info +
default_window when reporting per-bundle data for multi-CA setups.