tracing_tunnel

Trait FromTracedValue

Source
pub trait FromTracedValue<'a> {
    type Output: Borrow<Self> + 'a;

    // Required method
    fn from_value(value: &'a TracedValue) -> Option<Self::Output>;
}
Expand description

Fallible conversion from a TracedValue reference.

Required Associated Types§

Source

type Output: Borrow<Self> + 'a

Output of the conversion.

Required Methods§

Source

fn from_value(value: &'a TracedValue) -> Option<Self::Output>

Performs the conversion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromTracedValue<'_> for bool

Source§

impl FromTracedValue<'_> for f64

Source§

impl FromTracedValue<'_> for i64

Source§

impl FromTracedValue<'_> for i128

Source§

impl FromTracedValue<'_> for u64

Source§

impl FromTracedValue<'_> for u128

Source§

impl<'a> FromTracedValue<'a> for str

Source§

type Output = &'a str

Source§

fn from_value(value: &'a TracedValue) -> Option<Self::Output>

Implementors§