pub trait CorsState {
type Cors: CorsService;
// Required method
fn cors(&self) -> &Self::Cors;
}
Expand description
Trait implemented by the application State to provide cors-related services.
Required Associated Types§
Sourcetype Cors: CorsService
type Cors: CorsService
The concrete CORS Service type