|
|
|
@ -9,11 +9,11 @@ mod utils; |
|
|
|
pub use database::Database; |
|
|
|
pub use database::Database; |
|
|
|
pub use error::{Error, Result}; |
|
|
|
pub use error::{Error, Result}; |
|
|
|
pub use pdu::PduEvent; |
|
|
|
pub use pdu::PduEvent; |
|
|
|
|
|
|
|
pub use rocket::Config; |
|
|
|
pub use ruma_wrapper::{ConduitResult, Ruma, RumaResponse}; |
|
|
|
pub use ruma_wrapper::{ConduitResult, Ruma, RumaResponse}; |
|
|
|
|
|
|
|
|
|
|
|
use std::ops::Deref; |
|
|
|
use std::ops::Deref; |
|
|
|
|
|
|
|
|
|
|
|
pub struct State<'r, T: Send + Sync + 'static>(&'r T); |
|
|
|
pub struct State<'r, T: Send + Sync + 'static>(pub &'r T); |
|
|
|
|
|
|
|
|
|
|
|
impl<'r, T: Send + Sync + 'static> Deref for State<'r, T> { |
|
|
|
impl<'r, T: Send + Sync + 'static> Deref for State<'r, T> { |
|
|
|
type Target = T; |
|
|
|
type Target = T; |
|
|
|
|