Conduit is a simple, fast and reliable chat server powered by Matrix https://conduit.rs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
482 B
25 lines
482 B
|
6 years ago
|
pub mod client_server;
|
||
|
|
mod database;
|
||
|
|
mod error;
|
||
|
|
mod pdu;
|
||
|
|
pub mod push_rules;
|
||
|
|
mod ruma_wrapper;
|
||
|
|
mod utils;
|
||
|
|
|
||
|
|
pub use database::Database;
|
||
|
|
pub use error::{Error, Result};
|
||
|
|
pub use pdu::PduEvent;
|
||
|
|
pub use ruma_wrapper::{ConduitResult, Ruma, RumaResponse};
|
||
|
|
use std::ops::Deref;
|
||
|
|
|
||
|
|
pub struct State<'r, T: Send + Sync + 'static>(&'r T);
|
||
|
|
|
||
|
|
impl<'r, T: Send + Sync + 'static> Deref for State<'r, T> {
|
||
|
|
type Target = T;
|
||
|
|
|
||
|
|
#[inline(always)]
|
||
|
|
fn deref(&self) -> &T {
|
||
|
|
self.0
|
||
|
|
}
|
||
|
|
}
|