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

8 lines
264 B
Rust
Raw Normal View History

use std::collections::HashSet;
2022-09-07 13:25:51 +02:00
use crate::Result;
pub trait Data {
2022-10-05 12:45:54 +02:00
fn get_cached_eventid_authchain(&self, shorteventid: u64) -> Result<Option<HashSet<u64>>>;
2022-09-07 13:25:51 +02:00
fn cache_eventid_authchain(&self, shorteventid: u64, auth_chain: &HashSet<u64>) -> Result<()>;
}