[][src]Struct holochain_tracing::EncodedSpanWrap

pub struct EncodedSpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone
{ pub data: T, pub span_context: Option<EncodedSpanContext>, }

Fields

data: Tspan_context: Option<EncodedSpanContext>

Methods

impl<T> EncodedSpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone
[src]

pub fn map<F, U>(self, f: F) -> EncodedSpanWrap<U> where
    F: FnOnce(T) -> U,
    U: Serialize + DeserializeOwned + Clone
[src]

Map the data field to a new value while keeping the same span_context

pub fn swapped<U>(&self, data: U) -> EncodedSpanWrap<U> where
    U: Serialize + DeserializeOwned + Clone
[src]

Return new struct with new inner data and cloned context

Trait Implementations

impl<T: Clone> Clone for EncodedSpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone
[src]

impl<'a, T> Debug for EncodedSpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone + Debug
[src]

impl<'de, T> Deserialize<'de> for EncodedSpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone,
    T: DeserializeOwned
[src]

impl<'a, T> From<EncodedSpanWrap<T>> for SpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone
[src]

impl<'a, T> From<SpanWrap<T>> for EncodedSpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone
[src]

impl<T> PartialEq<EncodedSpanWrap<T>> for EncodedSpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone + PartialEq
[src]

impl<T> Serialize for EncodedSpanWrap<T> where
    T: Serialize + DeserializeOwned + Clone,
    T: Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for EncodedSpanWrap<T> where
    T: RefUnwindSafe

impl<T> Send for EncodedSpanWrap<T> where
    T: Send

impl<T> Sync for EncodedSpanWrap<T> where
    T: Sync

impl<T> Unpin for EncodedSpanWrap<T> where
    T: Unpin

impl<T> UnwindSafe for EncodedSpanWrap<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<F> Instrument for F[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,