pub fn new(config: Arc<AppConfig>) -> Self {
        Self {
            config,
            client: reqwest::Client::builder()
                // actual requests for this client should never exceed 60s,
                // unless you have the worst internet connection in history
                .timeout(Duration::from_secs(60))
                .build()
                .expect("backend http client"),

            ping_info: ArcSwap::from_pointee(None),
        }
    }
/// Creates a skeleton [`Backend`] that is ready to start pinging. If no ping has been
/// completed yet, then all getters will return `None`.
Creates a skeleton [`Backend`] that is ready to start pinging. If no ping has been
completed yet, then all getters will return `None`.
Creates a skeleton [ ` Backend ` ] that is ready to start pinging . If no ping has been completed yet then all getters will return ` None ` .
pub fn new(config: Arc<AppConfig>) -> Self {
        Self {
            config,
            client: reqwest::Client::builder()
                // actual requests for this client should never exceed 60s,
                // unless you have the worst internet connection in history
                .timeout(Duration::from_secs(60))
                .build()
                .expect("backend http client"),
            ping_info: ArcSwap::from_pointee(None),
        }
    }
pub fn new ( config : Arc < AppConfig > ) -> Self { Self { config , client : reqwest :: Client :: builder ( ) // actual requests for this client should never exceed 60s, // unless you have the worst internet connection in history . timeout ( Duration :: from_secs ( 60 ) ) . build ( ) . expect ( " " ) , ping_info : ArcSwap :: from_pointee ( None ) , } }
Creates a skeleton [`Backend`] that is ready to start pinging.
Creates a skeleton [ ` Backend ` ] that is ready to start pinging .
config
Arc<AppConfig>