Skip to main content

ActiveGenerationSource

Trait ActiveGenerationSource 

Source
pub trait ActiveGenerationSource: Send + Sync {
    // Required method
    fn active_generation(&self) -> Result<Option<ActiveGeneration>>;
}
Expand description

Source of truth for the active #atproto generation.

Required Methods§

Source

fn active_generation(&self) -> Result<Option<ActiveGeneration>>

Ok(None) when no sealed generation is observable yet; Err is fail-closed (corrupt/stale/rolled-back/unverifiable head).

Implementors§