Struct opentelemetry::trace::TraceId [−][src]
pub struct TraceId(_);
This is supported on crate feature
trace
only.TraceId is an 16-byte value which uniquely identifies a given trace
The actual u128
value is wrapped in a tuple struct in order to leverage the newtype pattern
Implementations
impl TraceId
[src]
impl TraceId
[src]pub fn to_byte_array(self) -> [u8; 16]
[src]
pub fn to_byte_array(self) -> [u8; 16]
[src]Convert from TraceId to Big-Endian byte array
pub fn from_byte_array(byte_array: [u8; 16]) -> Self
[src]
pub fn from_byte_array(byte_array: [u8; 16]) -> Self
[src]Construct a new TraceId from Big-Endian byte array
Trait Implementations
impl<'de> Deserialize<'de> for TraceId
[src]
impl<'de> Deserialize<'de> for TraceId
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Copy for TraceId
[src]
impl Eq for TraceId
[src]
impl StructuralEq for TraceId
[src]
impl StructuralPartialEq for TraceId
[src]
Auto Trait Implementations
impl RefUnwindSafe for TraceId
impl Send for TraceId
impl Sync for TraceId
impl Unpin for TraceId
impl UnwindSafe for TraceId
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,