pub trait UseCase:
Send
+ Sync
+ Send {
type Input: Send;
type Output: Send;
type Error: Error + Send + Sync + 'static;
// Required method
fn execute(
&self,
input: Self::Input,
) -> impl Future<Output = Result<Self::Output, Self::Error>> + Send;
}Expand description
A single, named application operation that orchestrates domain objects and ports to do one thing.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".