loom_types_blockchain/
fetchstate.rs

1
2
3
4
5
6
7
use std::sync::{Arc, RwLock};

#[derive(Debug, Clone)]
pub enum FetchState<T: Clone> {
    Fetching(Arc<RwLock<Option<T>>>),
    Ready(T),
}