conduwuit/src/service/rooms/auth_chain/data.rs

9 lines
257 B
Rust
Raw Normal View History

use std::sync::Arc;
use crate::Result;
2022-10-05 15:33:57 +02:00
pub trait Data: Send + Sync {
fn get_cached_eventid_authchain(&self, shorteventid: &[u64]) -> Result<Option<Arc<[u64]>>>;
fn cache_auth_chain(&self, shorteventid: Vec<u64>, auth_chain: Arc<[u64]>) -> Result<()>;
}