You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
conduit/src/service/rooms/metadata/mod.rs

18 lines
313 B
Rust

mod data;
pub use data::Data;
use ruma::RoomId;
use crate::Result;
pub struct Service<D: Data> {
db: D,
}
impl<D: Data> Service<D> {
/// Checks if a room exists.
#[tracing::instrument(skip(self))]
pub fn exists(&self, room_id: &RoomId) -> Result<bool> {
self.db.exists(room_id)
}
}