Trait AppBuilderExt

Source
pub trait AppBuilderExt {
    // Required method
    fn async_handler<C, F, Fut>(
        self,
        limit: impl Into<Option<usize>>,
        invoke_handler: F,
    ) -> Self
       where C: DeserializeOwned + Send + 'static,
             F: FnMut(C) -> Fut + Send + 'static,
             Fut: Future<Output = Result<Value>> + Send;
}

Required Methods§

Source

fn async_handler<C, F, Fut>( self, limit: impl Into<Option<usize>>, invoke_handler: F, ) -> Self
where C: DeserializeOwned + Send + 'static, F: FnMut(C) -> Fut + Send + 'static, Fut: Future<Output = Result<Value>> + Send,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl AppBuilderExt for AppBuilder

Source§

fn async_handler<C, F, Fut>( self, limit: impl Into<Option<usize>>, invoke_handler: F, ) -> Self
where C: DeserializeOwned + Send + 'static, F: FnMut(C) -> Fut + Send + 'static, Fut: Future<Output = Result<Value>> + Send,

Implementors§