mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 23:31:24 +01:00
18 lines
429 B
Rust
18 lines
429 B
Rust
use ruma::{CanonicalJsonObject, EventId};
|
|
|
|
use crate::Result;
|
|
|
|
pub(crate) trait Data: Send + Sync {
|
|
/// Returns the pdu from the outlier tree.
|
|
fn get_outlier_pdu_json(
|
|
&self,
|
|
event_id: &EventId,
|
|
) -> Result<Option<CanonicalJsonObject>>;
|
|
|
|
/// Append the PDU as an outlier.
|
|
fn add_pdu_outlier(
|
|
&self,
|
|
event_id: &EventId,
|
|
pdu: &CanonicalJsonObject,
|
|
) -> Result<()>;
|
|
}
|