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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
264 B
Rust
Raw Normal View History

use std::sync::Arc;
2022-09-07 13:25:51 +02:00
use crate::Result;
pub(crate) 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<()>;
}