Trait HttpModuleLocationConf

Source
pub unsafe trait HttpModuleLocationConf: HttpModule {
    type LocationConf;

    // Provided methods
    fn location_conf(
        o: &impl HttpModuleConfExt,
    ) -> Option<&'static Self::LocationConf> { ... }
    fn location_conf_mut(
        o: &impl HttpModuleConfExt,
    ) -> Option<&'static mut Self::LocationConf> { ... }
}
Expand description

Trait to define and access location-specific module configuration

Applies to a single location, if or limit_except block

§Safety

Caller must ensure that type HttpModuleLocationConf::LocationConf matches the configuration type for the specified module.

Required Associated Types§

Source

type LocationConf

Type for location-specific module configuration

Provided Methods§

Source

fn location_conf( o: &impl HttpModuleConfExt, ) -> Option<&'static Self::LocationConf>

Get reference to location-specific module configuration

Source

fn location_conf_mut( o: &impl HttpModuleConfExt, ) -> Option<&'static mut Self::LocationConf>

Get mutable reference to location-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.

Implementors§