mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-12 02:09:00 -05:00
7 lines
300 B
Rust
7 lines
300 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<()>;
|
|
}
|