mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-12 18:29:00 -05:00
8 lines
295 B
Rust
8 lines
295 B
Rust
use std::{collections::HashSet, sync::Arc};
|
|
|
|
use crate::Result;
|
|
|
|
pub trait Data: Send + Sync {
|
|
fn get_cached_eventid_authchain(&self, shorteventid: &[u64]) -> Result<Option<Arc<HashSet<u64>>>>;
|
|
fn cache_auth_chain(&self, shorteventid: Vec<u64>, auth_chain: Arc<HashSet<u64>>) -> Result<()>;
|
|
}
|