pocket_relay_client_shared/ctx.rs
1//! Shared context state that the app should store and pass to the
2//! various servers when they are started
3
4use url::Url;
5
6/// Shared context
7pub struct ClientContext {
8    /// HTTP client for the client to make requests with
9    pub http_client: reqwest::Client,
10    /// Base URL of the connected server
11    pub base_url: Url,
12    /// Optional association token
13    pub association: Option<String>,
14    /// Optional tunnel port for tunnel V2 if available
15    pub tunnel_port: Option<u16>,
16}