9dd9aeea97
conduwuit is not a library Signed-off-by: strawberry <strawberry@puppygock.gay>
10 lines
371 B
Rust
10 lines
371 B
Rust
use ruma::{CanonicalJsonObject, EventId};
|
|
|
|
use crate::{PduEvent, Result};
|
|
|
|
pub(crate) 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<()>;
|
|
}
|