pub struct App {
pub capability: Capability,
pub locked_readonly_profile: AtomicBool,
pub config: RwLock<RuntimeConfig>,
pub executor: Arc<dyn DbExecutor>,
pub writer: Sender<Output>,
pub in_flight: Mutex<HashMap<String, InFlightQuery>>,
pub requests_total: AtomicU64,
pub start_time: Instant,
}Fields§
§capability: Capability§locked_readonly_profile: AtomicBool§config: RwLock<RuntimeConfig>§executor: Arc<dyn DbExecutor>§writer: Sender<Output>§in_flight: Mutex<HashMap<String, InFlightQuery>>§requests_total: AtomicU64§start_time: InstantImplementations§
Source§impl App
impl App
pub fn new( config: RuntimeConfig, writer: Sender<Output>, capability: Capability, ) -> Self
Auto Trait Implementations§
impl !Freeze for App
impl !RefUnwindSafe for App
impl !UnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
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