Files
continuwuity/src/service/transaction_ids/data.rs
T

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

14 lines
358 B
Rust
Raw Normal View History

2022-10-05 20:34:31 +02:00
use ruma::{DeviceId, TransactionId, UserId};
2022-09-07 13:25:51 +02:00
use crate::Result;
2024-03-05 19:48:54 -05:00
2022-10-05 15:33:57 +02:00
pub trait Data: Send + Sync {
2022-09-06 23:15:09 +02:00
fn add_txnid(
&self, user_id: &UserId, device_id: Option<&DeviceId>, txn_id: &TransactionId, data: &[u8],
) -> Result<()>;
2022-09-06 23:15:09 +02:00
fn existing_txnid(
&self, user_id: &UserId, device_id: Option<&DeviceId>, txn_id: &TransactionId,
) -> Result<Option<Vec<u8>>>;
}