Module cargo_registry::app [] [src]

Application-wide components in a struct accessible from each request

Reexports

use std::env;
use std::error::Error;
use std::path::PathBuf;
use std::sync::Arc;
use std::sync::Mutex;
use conduit::Request;
use conduit::Response;
use conduit_middleware::Middleware;
use git2;
use oauth2;
use r2d2;
use curl::easy::Easy;
use db;
use Config;

Structs

App

The App struct holds the main components of the application like the database connection pool and configurations

AppMiddleware

The AppMiddleware injects an App instance into the Request extensions

Traits

RequestApp

Adds an app() method to the Request type returning the global App instance