fn from_req(req: &HttpRequest) -> &Self {
        req.app_data::<Self>()
            .or_else(|| req.app_data::<Data<Self>>().map(|d| d.as_ref()))
            .unwrap_or(&DEFAULT_CONFIG)
    }
/// Extract WsConfig config from app data. Check both `T` and `Data<T>`, in that order, and fall
/// back to the default payload config.
Extract WsConfig config from app data. Check both `T` and `Data`, in that order, and fall
back to the default payload config.
Extract WsConfig config from app data . Check both ` T ` and ` Data ` in that order and fall back to the default payload config .
fn from_req(req: &HttpRequest) -> &Self {
        req.app_data::<Self>()
            .or_else(|| req.app_data::<Data<Self>>().map(|d| d.as_ref()))
            .unwrap_or(&DEFAULT_CONFIG)
    }
fn from_req ( req : & HttpRequest ) -> & Self { req . app_data :: < Self > ( ) . or_else ( | | req . app_data :: < Data < Self > > ( ) . map ( | d | d . as_ref ( ) ) ) . unwrap_or ( & DEFAULT_CONFIG ) }
Extract WsConfig config from app data.
Extract WsConfig config from app data .
req
&HttpRequest