pub trait StaticResponseExtender: RefUnwindSafe {
type ResBody: HttpBody;
// Required method
fn extend(state: &mut State, response: &mut Response<Self::ResBody>);
}
Expand description
Extend the Response
based on current State
and Response
data.
Required Associated Types§
Required Methods§
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.