Struct rustracing::log::LogBuilder
source · [−]pub struct LogBuilder { /* private fields */ }
Expand description
Span log builder.
Implementations
sourceimpl LogBuilder
impl LogBuilder
sourcepub fn time(&mut self, time: SystemTime) -> &mut Self
pub fn time(&mut self, time: SystemTime) -> &mut Self
Sets the value of timestamp to time
.
sourcepub fn std(&mut self) -> StdLogFieldsBuilder<'_>
pub fn std(&mut self) -> StdLogFieldsBuilder<'_>
Returns a specialized builder for the standard log fields.
sourcepub fn error(&mut self) -> StdErrorLogFieldsBuilder<'_>
pub fn error(&mut self) -> StdErrorLogFieldsBuilder<'_>
Returns a specialized builder for the standard error log fields.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LogBuilder
impl Send for LogBuilder
impl Sync for LogBuilder
impl Unpin for LogBuilder
impl UnwindSafe for LogBuilder
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