Struct dendrite_auth::dendrite::axon_utils::HandleBuilder
source · pub struct HandleBuilder<T, M, P, R, W>where
T: 'static,
M: 'static,
P: 'static,
R: 'static,
W: 'static,{ /* private fields */ }
Implementations§
source§impl<T, M, P, R, W> HandleBuilder<T, M, P, R, W>
impl<T, M, P, R, W> HandleBuilder<T, M, P, R, W>
pub fn new( 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) ) -> HandleBuilder<T, M, P, R, W>
pub fn ignore_output(self) -> HandleBuilder<T, M, P, R, W>
pub fn with_mapped_output( self, type_name: &str, mapper: &'static (dyn Fn(&str, &R) -> Result<W, Error> + Sync) ) -> HandleBuilder<T, M, P, R, W>
pub fn build(self) -> Box<dyn SubscriptionHandle<P, M, W>>
source§impl<T, M, P, R> HandleBuilder<T, M, P, R, R>where
R: Clone,
impl<T, M, P, R> HandleBuilder<T, M, P, R, R>where
R: Clone,
pub fn with_output(self) -> HandleBuilder<T, M, P, R, R>
Auto Trait Implementations§
impl<T, M, P, R, W> !RefUnwindSafe for HandleBuilder<T, M, P, R, W>
impl<T, M, P, R, W> Send for HandleBuilder<T, M, P, R, W>
impl<T, M, P, R, W> Sync for HandleBuilder<T, M, P, R, W>
impl<T, M, P, R, W> Unpin for HandleBuilder<T, M, P, R, W>
impl<T, M, P, R, W> !UnwindSafe for HandleBuilder<T, M, P, R, 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