mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 16:51:24 +01:00
This change is fully automated, except the `rustfmt.toml` changes and a few clippy directives to allow specific functions with too many lines because they are longer now.
20 lines
445 B
Rust
20 lines
445 B
Rust
use ruma::{DeviceId, TransactionId, UserId};
|
|
|
|
use crate::Result;
|
|
|
|
pub(crate) trait Data: Send + Sync {
|
|
fn add_txnid(
|
|
&self,
|
|
user_id: &UserId,
|
|
device_id: Option<&DeviceId>,
|
|
txn_id: &TransactionId,
|
|
data: &[u8],
|
|
) -> Result<()>;
|
|
|
|
fn existing_txnid(
|
|
&self,
|
|
user_id: &UserId,
|
|
device_id: Option<&DeviceId>,
|
|
txn_id: &TransactionId,
|
|
) -> Result<Option<Vec<u8>>>;
|
|
}
|