pub struct RequestExecutionRoot { /* private fields */ }Expand description
Non-cloneable capability owning one request’s aggregate database counters.
Construct this once at request entry and derive every database session used by the request from it. Sessions retain the counters, so dropping this value does not reset work already attached to a derived session.
Implementations§
Source§impl RequestExecutionRoot
impl RequestExecutionRoot
Sourcepub fn request_budget(&self) -> RequestBudgetSnapshot
pub fn request_budget(&self) -> RequestBudgetSnapshot
Snapshot this root’s retained aggregate request counters without charging work.
Auto Trait Implementations§
impl !RefUnwindSafe for RequestExecutionRoot
impl !Send for RequestExecutionRoot
impl !Sync for RequestExecutionRoot
impl !UnwindSafe for RequestExecutionRoot
impl Freeze for RequestExecutionRoot
impl Unpin for RequestExecutionRoot
impl UnsafeUnpin for RequestExecutionRoot
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