Skip to main content

UseCase

Trait UseCase 

Source
pub trait UseCase: Send + Sync {
    type Input: Send;
    type Output: Send;

    // Required method
    fn execute(
        &self,
        input: Self::Input,
    ) -> BoxFuture<'_, SoapResult<Self::Output>>;
}
Expand description

An object-safe asynchronous application operation.

Required Associated Types§

Source

type Input: Send

Input accepted by the operation.

Source

type Output: Send

Successful output produced by the operation.

Required Methods§

Source

fn execute(&self, input: Self::Input) -> BoxFuture<'_, SoapResult<Self::Output>>

Executes the use case.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§