#[repr(u8)]pub enum WorkOrigin {
Root = 0,
Decoded = 1,
Derived = 2,
Retried = 3,
}Expand description
Causal origin of the work measured by one span.
Variants§
Root = 0
Work performed directly on the caller’s own input.
Decoded = 1
Work performed inside an accepted decode-through input.
Derived = 2
Work performed on input derived from earlier pipeline output.
Retried = 3
Work repeated after an earlier attempt failed or was recovered.
Implementations§
Source§impl WorkOrigin
impl WorkOrigin
Trait Implementations§
Source§impl Clone for WorkOrigin
impl Clone for WorkOrigin
Source§fn clone(&self) -> WorkOrigin
fn clone(&self) -> WorkOrigin
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 moreimpl Copy for WorkOrigin
Source§impl Debug for WorkOrigin
impl Debug for WorkOrigin
Source§impl Default for WorkOrigin
impl Default for WorkOrigin
Source§fn default() -> WorkOrigin
fn default() -> WorkOrigin
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkOrigin
impl<'de> Deserialize<'de> for WorkOrigin
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 WorkOrigin
Source§impl From<Attribution> for WorkOrigin
impl From<Attribution> for WorkOrigin
Source§fn from(attribution: Attribution) -> Self
fn from(attribution: Attribution) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WorkOrigin
impl PartialEq for WorkOrigin
Source§impl Serialize for WorkOrigin
impl Serialize for WorkOrigin
impl StructuralPartialEq for WorkOrigin
Auto Trait Implementations§
impl Freeze for WorkOrigin
impl RefUnwindSafe for WorkOrigin
impl Send for WorkOrigin
impl Sync for WorkOrigin
impl Unpin for WorkOrigin
impl UnsafeUnpin for WorkOrigin
impl UnwindSafe for WorkOrigin
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