pub struct LogBuilder { /* private fields */ }
Expand description
Span log builder.
Implementations§
Source§impl 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 Freeze for LogBuilder
impl RefUnwindSafe for LogBuilder
impl Send for LogBuilder
impl Sync for LogBuilder
impl Unpin for LogBuilder
impl UnwindSafe for LogBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more