Files
continuwuity/src/service/rooms/outlier/data.rs
T

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

10 lines
364 B
Rust
Raw Normal View History

2022-10-09 17:25:06 +02:00
use ruma::{CanonicalJsonObject, EventId};
2022-09-06 23:15:09 +02:00
2022-09-07 13:25:51 +02:00
use crate::{PduEvent, Result};
2022-09-06 23:15:09 +02:00
2024-05-09 15:59:08 -07:00
pub trait Data: Send + Sync {
fn get_outlier_pdu_json(&self, event_id: &EventId) -> Result<Option<CanonicalJsonObject>>;
fn get_outlier_pdu(&self, event_id: &EventId) -> Result<Option<PduEvent>>;
fn add_pdu_outlier(&self, event_id: &EventId, pdu: &CanonicalJsonObject) -> Result<()>;
}