pub struct QueryId(/* private fields */);Expand description
Query-wide diagnostic correlation id.
Implementations§
Source§impl QueryId
impl QueryId
Sourcepub const UNASSIGNED: &'static str = "unassigned"
pub const UNASSIGNED: &'static str = "unassigned"
Sentinel used by tests and manually-constructed metrics that have not been attached to a query entrypoint yet.
Sourcepub fn is_assigned(&self) -> bool
pub fn is_assigned(&self) -> bool
Returns true when this id is not the default sentinel.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueryId
Decoding applies the same canonicalization as QueryId::new, so a
blank serialized id reads back as QueryId::UNASSIGNED.
impl<'de> Deserialize<'de> for QueryId
Decoding applies the same canonicalization as QueryId::new, so a
blank serialized id reads back as QueryId::UNASSIGNED.
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QueryId
Source§impl Ord for QueryId
impl Ord for QueryId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for QueryId
impl PartialOrd for QueryId
impl StructuralPartialEq for QueryId
Auto Trait Implementations§
impl Freeze for QueryId
impl RefUnwindSafe for QueryId
impl Send for QueryId
impl Sync for QueryId
impl Unpin for QueryId
impl UnsafeUnpin for QueryId
impl UnwindSafe for QueryId
Blanket Implementations§
impl<T> Allocation for T
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