1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-11-06 08:18:52 +01:00
conduit/src/lib.rs

28 lines
556 B
Rust
Raw Normal View History

pub mod appservice_server;
pub mod client_server;
mod database;
mod error;
mod pdu;
2020-07-30 18:14:47 +02:00
mod push_rules;
mod ruma_wrapper;
2020-08-14 11:34:15 +02:00
pub mod server_server;
mod utils;
2020-07-30 18:14:47 +02:00
pub use database::Database;
pub use error::{Error, Result};
pub use pdu::PduEvent;
pub use rocket::Config;
pub use ruma_wrapper::{ConduitResult, Ruma, RumaResponse};
use std::ops::Deref;
pub struct State<'r, T: Send + Sync + 'static>(pub &'r T);
impl<'r, T: Send + Sync + 'static> Deref for State<'r, T> {
type Target = T;
#[inline(always)]
fn deref(&self) -> &T {
self.0
}
}