mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
10 lines
363 B
Rust
10 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<()>;
|
|
}
|