mocra 0.3.0

A distributed, event-driven crawling and data collection framework
1
2
3
4
5
6
7
8
9
10
use crate::cacheable::CacheAble;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
/// is close or not
pub struct StreamStats(pub bool);
impl CacheAble for StreamStats {
    fn field() -> impl AsRef<str> {
        "stream_stats"
    }
}