mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 00:31:24 +01:00
Remove useless wrapper Services
This commit is contained in:
parent
87a1012ab5
commit
ad7a5ea777
20 changed files with 43 additions and 530 deletions
|
|
@ -2,6 +2,7 @@ use crate::Result;
|
|||
use ruma::{OwnedRoomId, RoomId};
|
||||
|
||||
pub(crate) trait Data: Send + Sync {
|
||||
/// Checks if a room exists.
|
||||
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>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue