[−][src]Struct holochain_tracing::EncodedSpanWrap
Fields
data: T
span_context: Option<EncodedSpanContext>
Methods
impl<T> EncodedSpanWrap<T> where
T: Serialize + DeserializeOwned + Clone,
[src]
T: Serialize + DeserializeOwned + Clone,
pub fn map<F, U>(self, f: F) -> EncodedSpanWrap<U> where
F: FnOnce(T) -> U,
U: Serialize + DeserializeOwned + Clone,
[src]
F: FnOnce(T) -> U,
U: Serialize + DeserializeOwned + Clone,
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]
U: Serialize + DeserializeOwned + Clone,
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]
T: Serialize + DeserializeOwned + Clone,
fn clone(&self) -> EncodedSpanWrap<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, T> Debug for EncodedSpanWrap<T> where
T: Serialize + DeserializeOwned + Clone + Debug,
[src]
T: Serialize + DeserializeOwned + Clone + Debug,
impl<'de, T> Deserialize<'de> for EncodedSpanWrap<T> where
T: Serialize + DeserializeOwned + Clone,
T: DeserializeOwned,
[src]
T: Serialize + DeserializeOwned + Clone,
T: DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a, T> From<EncodedSpanWrap<T>> for SpanWrap<T> where
T: Serialize + DeserializeOwned + Clone,
[src]
T: Serialize + DeserializeOwned + Clone,
fn from(swe: EncodedSpanWrap<T>) -> Self
[src]
impl<'a, T> From<SpanWrap<T>> for EncodedSpanWrap<T> where
T: Serialize + DeserializeOwned + Clone,
[src]
T: Serialize + DeserializeOwned + Clone,
impl<T> PartialEq<EncodedSpanWrap<T>> for EncodedSpanWrap<T> where
T: Serialize + DeserializeOwned + Clone + PartialEq,
[src]
T: Serialize + DeserializeOwned + Clone + PartialEq,
impl<T> Serialize for EncodedSpanWrap<T> where
T: Serialize + DeserializeOwned + Clone,
T: Serialize,
[src]
T: Serialize + DeserializeOwned + Clone,
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for EncodedSpanWrap<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for EncodedSpanWrap<T> where
T: Send,
T: Send,
impl<T> Sync for EncodedSpanWrap<T> where
T: Sync,
T: Sync,
impl<T> Unpin for EncodedSpanWrap<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for EncodedSpanWrap<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<F> Instrument for F
[src]
fn instrument<S>(self, span: S) -> Instrumented<Self, S> where
S: Span,
[src]
S: Span,
fn in_active_span<T>(self, tracer: T) -> Instrumented<Self, <T as Tracer>::Span> where
T: Tracer,
[src]
T: Tracer,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,