Struct dendrite_auth::dendrite::axon_utils::TheHandlerRegistry
source · pub struct TheHandlerRegistry<P, M, W>{ /* private fields */ }
Expand description
Concrete struct that implements the HandlerRegistry
trait.
Trait Implementations§
source§impl<P, M, W> HandlerRegistry<P, M, W> for TheHandlerRegistry<P, M, W>
impl<P, M, W> HandlerRegistry<P, M, W> for TheHandlerRegistry<P, M, W>
fn register( &mut self, applicator: &'static dyn Fn(&mut TheHandlerRegistry<P, M, W>) -> Result<(), Error> ) -> Result<(), Error>
fn insert<T>( &mut self, name: &str, deserializer: &'static (dyn Fn(Bytes) -> Result<T, DecodeError> + Sync), handler: &'static (dyn Fn(T, M, P) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>> + Sync) ) -> Result<(), Error>
fn insert_handle( &mut self, handle: Box<dyn SubscriptionHandle<P, M, W>> ) -> Result<(), Error>
fn insert_ignoring_output<T, R>( &mut self, name: &str, deserializer: &'static (dyn Fn(Bytes) -> Result<T, DecodeError> + Sync), handler: &'static (dyn Fn(T, M, P) -> Pin<Box<dyn Future<Output = Result<Option<R>, Error>> + Send>> + Sync) ) -> Result<(), Error>
fn insert_with_output<T>( &mut self, name: &str, deserializer: &'static (dyn Fn(Bytes) -> Result<T, DecodeError> + Sync), handler: &'static (dyn Fn(T, M, P) -> Pin<Box<dyn Future<Output = Result<Option<W>, Error>> + Send>> + Sync) ) -> Result<(), Error>
fn insert_with_mapped_output<T, R>( &mut self, name: &str, deserializer: &'static (dyn Fn(Bytes) -> Result<T, DecodeError> + Sync), handler: &'static (dyn Fn(T, M, P) -> Pin<Box<dyn Future<Output = Result<Option<R>, Error>> + Send>> + Sync), type_name: &str, wrapper: &'static (dyn Fn(&str, &R) -> Result<W, Error> + Sync) ) -> Result<(), Error>
fn append_category_handle( &mut self, regex: &str, handle: Box<dyn SubscriptionHandle<P, M, W>> ) -> Result<(), Error>
fn get(&self, name: &str) -> Option<&dyn SubscriptionHandle<P, M, W>>
Auto Trait Implementations§
impl<P, M, W> !RefUnwindSafe for TheHandlerRegistry<P, M, W>
impl<P, M, W> Send for TheHandlerRegistry<P, M, W>
impl<P, M, W> Sync for TheHandlerRegistry<P, M, W>
impl<P, M, W> Unpin for TheHandlerRegistry<P, M, W>
impl<P, M, W> !UnwindSafe for TheHandlerRegistry<P, M, W>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request