Struct rustracing::log::StdErrorLogFieldsBuilder
source · [−]pub struct StdErrorLogFieldsBuilder<'a>(_);
Expand description
A specialized span log builder for the standard error log fields.
This builder automatically inserts the field LogField::new("event", "error")
.
Implementations
sourceimpl<'a> StdErrorLogFieldsBuilder<'a>
impl<'a> StdErrorLogFieldsBuilder<'a>
sourcepub fn kind<T>(&mut self, kind: T) -> &mut Self where
T: Into<Cow<'static, str>>,
pub fn kind<T>(&mut self, kind: T) -> &mut Self where
T: Into<Cow<'static, str>>,
Adds the field LogField::new("error.kind", kind)
.
kind
is the type or “kind” of an error.
E.g., "Exception"
, "OSError"
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for StdErrorLogFieldsBuilder<'a>
impl<'a> Send for StdErrorLogFieldsBuilder<'a>
impl<'a> Sync for StdErrorLogFieldsBuilder<'a>
impl<'a> Unpin for StdErrorLogFieldsBuilder<'a>
impl<'a> !UnwindSafe for StdErrorLogFieldsBuilder<'a>
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