MCPcopy Create free account
hub / github.com/Rustixir/darkbird / State

Class State

src/darkbird/storage_redis.rs:59–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58#[derive(Debug)]
59struct State<K, Doc>
60where
61 Doc: Clone + Send + Sync + 'static,
62 K: Clone
63 + PartialOrd
64 + Ord
65 + PartialEq
66 + Eq
67 + Hash
68 + Send
69 + 'static
70{
71
72 entries: HashMap<K, Entry<Doc>>,
73 expirations: BTreeMap<(Instant, u64), K>,
74 next_id: u64,
75 shutdown: bool,
76}
77
78
79#[derive(Debug)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected