pub struct AppState {
pub cache: Arc<GitCache>,
pub lfs: Arc<Lfs>,
pub upstream_base: String,
pub cache_root: PathBuf,
pub serve_token: Option<String>,
pub max_decoded_body: usize,
pub max_concurrent: usize,
pub metrics: Arc<Metrics>,
}Fields§
§cache: Arc<GitCache>§lfs: Arc<Lfs>§upstream_base: String§cache_root: PathBuf§serve_token: Option<String>§max_decoded_body: usizeUpper bound (bytes) on a decoded upload-pack request body. See
Config::max_decoded_body_mb.
max_concurrent: usizeMax concurrent in-flight requests (0 = unlimited). See
Config::max_concurrent_requests.
metrics: Arc<Metrics>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AppState
impl !UnwindSafe for AppState
impl Freeze for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more