pub unsafe trait HttpModuleServerConf: HttpModule {
type ServerConf;
// Provided methods
fn server_conf(
o: &impl HttpModuleConfExt,
) -> Option<&'static Self::ServerConf> { ... }
fn server_conf_mut(
o: &impl HttpModuleConfExt,
) -> Option<&'static mut Self::ServerConf> { ... }
}
Expand description
Trait to define and access server-specific module configuration
§Safety
Caller must ensure that type HttpModuleServerConf::ServerConf
matches the configuration type
for the specified module.
Required Associated Types§
Sourcetype ServerConf
type ServerConf
Type for server-specific module configuration
Provided Methods§
Sourcefn server_conf(o: &impl HttpModuleConfExt) -> Option<&'static Self::ServerConf>
fn server_conf(o: &impl HttpModuleConfExt) -> Option<&'static Self::ServerConf>
Get reference to server-specific module configuration
Sourcefn server_conf_mut(
o: &impl HttpModuleConfExt,
) -> Option<&'static mut Self::ServerConf>
fn server_conf_mut( o: &impl HttpModuleConfExt, ) -> Option<&'static mut Self::ServerConf>
Get mutable reference to server-specific module configuration
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.