pub trait Status<T> {
// Required method
fn with_status(self, status: impl FnOnce() -> StatusCode) -> Result<T>;
// Provided method
fn status(self, status: StatusCode) -> Result<T>
where Self: Sized { ... }
}
Required Methods§
fn with_status(self, status: impl FnOnce() -> StatusCode) -> Result<T>
Provided Methods§
fn status(self, status: StatusCode) -> Result<T>where
Self: Sized,
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.