pub trait Application: Send + Sync {
type Input: Send;
type Output: Send;
type Error: Send + Debug;
// Required methods
fn name(&self) -> &str;
fn handle<'life0, 'async_trait>(
&'life0 self,
input: Self::Input,
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
An Application is a peer unit of (input → internal processing → output).
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".