pub struct AppState {
pub client: Arc<CloudflareClient>,
pub zone_name: Mutex<String>,
pub records: Mutex<Vec<DnsRecord>>,
pub existing_ips: Mutex<Vec<String>>,
pub dns_cache: Mutex<DnsCache>,
}Expand description
Shared application state wrapped in Arc for thread-safe access.
This state is shared across multiple async tasks and UI components.
Fields§
§client: Arc<CloudflareClient>Cloudflare API client
zone_name: Mutex<String>Zone name (resolved from zone ID on startup)
records: Mutex<Vec<DnsRecord>>Current DNS records
existing_ips: Mutex<Vec<String>>Unique IPs extracted from A/AAAA records (for IP selector)
dns_cache: Mutex<DnsCache>Cache for DNS records to reduce redundant API calls
Implementations§
Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
impl !UnwindSafe for AppState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more