mirror of https://gitlab.com/famedly/conduit
Merge pull request 'Timo's Conditionally emit rocket::http_verb attr macros if lib/bin' (#157) from timo-make-lib into master
Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/157merge-requests/22/head
commit
c4260bde81
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,24 @@
|
|||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue