Enum aptos_logger::Value
source · [−]Expand description
The value part of a logging key value pair e.g. info!(key = value)
Variants
Debug(&'v dyn Debug)
Display(&'v dyn Display)
Serde(&'v dyn Serialize)
Implementations
sourceimpl<'v> Value<'v>
impl<'v> Value<'v>
sourcepub fn from_serde<T: Serialize>(value: &'v T) -> Self
pub fn from_serde<T: Serialize>(value: &'v T) -> Self
Get a value from a debuggable type.
sourcepub fn from_debug<T: Debug>(value: &'v T) -> Self
pub fn from_debug<T: Debug>(value: &'v T) -> Self
Get a value from a debuggable type.
sourcepub fn from_display<T: Display>(value: &'v T) -> Self
pub fn from_display<T: Display>(value: &'v T) -> Self
Get a value from a displayable type.
Trait Implementations
impl<'v> Copy for Value<'v>
Auto Trait Implementations
impl<'v> !RefUnwindSafe for Value<'v>
impl<'v> !Send for Value<'v>
impl<'v> !Sync for Value<'v>
impl<'v> Unpin for Value<'v>
impl<'v> !UnwindSafe for Value<'v>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more