mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-14 19:28:57 -05:00
9 lines
373 B
Rust
9 lines
373 B
Rust
use ruma::{CanonicalJsonObject, EventId};
|
|
|
|
use crate::{PduEvent, Result};
|
|
|
|
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<()>;
|
|
}
|