pub trait StaticResourcewhere
Self: Sized,{
// Required methods
fn content_type(&self) -> ContentType;
fn description(&self) -> &'static str;
fn into_handler_dyn(self) -> HandlerDynArc;
}
Required Methods§
fn content_type(&self) -> ContentType
fn description(&self) -> &'static str
fn into_handler_dyn(self) -> HandlerDynArc
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.