//! Shared state and store for the iroh-dns-server

use std::sync::Arc;

use crate::{dns::DnsHandler, metrics::Metrics, store::ZoneStore};

/// The shared app state.
#[derive(Clone)]
pub struct AppState {
    /// The pkarr DNS store
    pub store: ZoneStore,
    /// Handler for DNS requests
    pub dns_handler: DnsHandler,
    /// Metrics collector.
    pub metrics: Arc<Metrics>,
}

Homonyms

warriors/trisha/cli/state.rs
soft3/bbg/rs/src/state.rs
soft3/nox/rs/jets/state.rs
soft3/radio/iroh-gossip/src/proto/state.rs
soft3/radio/iroh-docs/src/engine/state.rs
bootloader/go-cyber/cw/contracts/graph-filter/src/state.rs
bootloader/go-cyber/cw/contracts/std-test/src/state.rs
cyb/evy/forks/bevy_ecs/src/query/state.rs
cyb/wysm/crates/wasmi/src/engine/executor/handler/state.rs

Graph