grapevine/src/service/rooms/metadata/data.rs
Timo Kösters 6b131202b9
Bump ruma
2022-10-10 14:02:04 +02:00

9 lines
363 B
Rust

use crate::Result;
use ruma::{OwnedRoomId, RoomId};
pub trait Data: Send + Sync {
fn exists(&self, room_id: &RoomId) -> Result<bool>;
fn iter_ids<'a>(&'a self) -> Box<dyn Iterator<Item = Result<OwnedRoomId>> + 'a>;
fn is_disabled(&self, room_id: &RoomId) -> Result<bool>;
fn disable_room(&self, room_id: &RoomId, disabled: bool) -> Result<()>;
}