mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 16:21: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.
27 lines
683 B
Rust
27 lines
683 B
Rust
use ruma::{
|
|
api::client::threads::get_threads::v1::IncludeThreads, OwnedUserId, RoomId,
|
|
UserId,
|
|
};
|
|
|
|
use crate::{PduEvent, Result};
|
|
|
|
pub(crate) trait Data: Send + Sync {
|
|
#[allow(clippy::type_complexity)]
|
|
fn threads_until<'a>(
|
|
&'a self,
|
|
user_id: &'a UserId,
|
|
room_id: &'a RoomId,
|
|
until: u64,
|
|
include: &'a IncludeThreads,
|
|
) -> Result<Box<dyn Iterator<Item = Result<(u64, PduEvent)>> + 'a>>;
|
|
|
|
fn update_participants(
|
|
&self,
|
|
root_id: &[u8],
|
|
participants: &[OwnedUserId],
|
|
) -> Result<()>;
|
|
fn get_participants(
|
|
&self,
|
|
root_id: &[u8],
|
|
) -> Result<Option<Vec<OwnedUserId>>>;
|
|
}
|