mirror of
https://github.com/girlbossceo/conduwuit.git
synced 2025-12-12 02:09:00 -05:00
9 lines
348 B
Rust
9 lines
348 B
Rust
use crate::Result;
|
|
use ruma::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<Box<RoomId>>> + 'a>;
|
|
fn is_disabled(&self, room_id: &RoomId) -> Result<bool>;
|
|
fn disable_room(&self, room_id: &RoomId, disabled: bool) -> Result<()>;
|
|
}
|