1use std::sync::{Arc, RwLock}; 2 3#[derive(Debug, Clone)] 4pub enum FetchState<T: Clone> { 5 Fetching(Arc<RwLock<Option<T>>>), 6 Ready(T), 7}