pub enum ControllerRequestHandle {
Active(OwnedRequestHandle),
Inert(InertControllerRequestHandle),
}Expand description
Instrumentation handle for requests admitted through TailtriageController.
Variants§
Active(OwnedRequestHandle)
Active request handle delegated to one admitted generation.
Inert(InertControllerRequestHandle)
Inert request handle returned while disabled/closing.
Implementations§
Source§impl ControllerRequestHandle
impl ControllerRequestHandle
Sourcepub fn request_id(&self) -> &str
pub fn request_id(&self) -> &str
Correlation ID attached to this request.
Sourcepub fn queue(&self, queue: impl Into<String>) -> ControllerQueueTimer<'_>
pub fn queue(&self, queue: impl Into<String>) -> ControllerQueueTimer<'_>
Starts queue-wait timing instrumentation for queue.
Sourcepub fn stage(&self, stage: impl Into<String>) -> ControllerStageTimer<'_>
pub fn stage(&self, stage: impl Into<String>) -> ControllerStageTimer<'_>
Starts stage timing instrumentation for stage.
Sourcepub fn inflight(&self, gauge: impl Into<String>) -> ControllerInflightGuard<'_>
pub fn inflight(&self, gauge: impl Into<String>) -> ControllerInflightGuard<'_>
Creates an in-flight guard for gauge.
Trait Implementations§
Source§impl Clone for ControllerRequestHandle
impl Clone for ControllerRequestHandle
Source§fn clone(&self) -> ControllerRequestHandle
fn clone(&self) -> ControllerRequestHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ControllerRequestHandle
impl !RefUnwindSafe for ControllerRequestHandle
impl Send for ControllerRequestHandle
impl Sync for ControllerRequestHandle
impl Unpin for ControllerRequestHandle
impl UnsafeUnpin for ControllerRequestHandle
impl !UnwindSafe for ControllerRequestHandle
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