Trait CorsState

Source
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§

Source

type Cors: CorsService

The concrete CORS Service type

Required Methods§

Source

fn cors(&self) -> &Self::Cors

Retrieves the CORS service

Implementors§