pub struct RecordBuilder<'a> { /* private fields */ }Expand description
Builder for constructing log records.
Use Record::builder to create an instance.
§Example
use reovim_kernel::api::v1::*;
let record = Record::builder(Level::Debug)
.message("entering function")
.module_path("reovim_kernel::core")
.file("motion.rs")
.line(100)
.build();Implementations§
Source§impl<'a> RecordBuilder<'a>
impl<'a> RecordBuilder<'a>
Sourcepub const fn module_path(self, module_path: &'static str) -> Self
pub const fn module_path(self, module_path: &'static str) -> Self
Sets the module path.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RecordBuilder<'a>
impl<'a> RefUnwindSafe for RecordBuilder<'a>
impl<'a> Send for RecordBuilder<'a>
impl<'a> Sync for RecordBuilder<'a>
impl<'a> Unpin for RecordBuilder<'a>
impl<'a> UnsafeUnpin for RecordBuilder<'a>
impl<'a> UnwindSafe for RecordBuilder<'a>
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