pub trait IUseCase {
type Request;
type Error;
// Required methods
fn short_description() -> String;
fn execute(&mut self, request: Self::Request) -> Result<(), Self::Error>;
// Provided method
fn description(&self) -> String { ... }
}Required Associated Types§
Required Methods§
fn short_description() -> String
fn execute(&mut self, request: Self::Request) -> Result<(), Self::Error>
Provided Methods§
fn description(&self) -> String
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.