Struct spdlog::RecordBuilder
source · [−]pub struct RecordBuilder<'a> { /* private fields */ }
Implementations
sourceimpl<'a> RecordBuilder<'a>
impl<'a> RecordBuilder<'a>
sourcepub fn new<S>(level: Level, payload: S) -> Self where
S: Into<Cow<'a, str>>,
pub fn new<S>(level: Level, payload: S) -> Self where
S: Into<Cow<'a, str>>,
Constructs a RecordBuilder
.
The default value of Record
is the same as Record::new()
.
Typically users should only use it for testing Sink
.
sourcepub fn logger_name(self, logger_name: &'a str) -> Self
pub fn logger_name(self, logger_name: &'a str) -> Self
Sets the logger name.
sourcepub fn source_location(self, srcloc: Option<SourceLocation>) -> Self
pub fn source_location(self, srcloc: Option<SourceLocation>) -> Self
Sets the source location.
Trait Implementations
sourceimpl<'a> Clone for RecordBuilder<'a>
impl<'a> Clone for RecordBuilder<'a>
sourcefn clone(&self) -> RecordBuilder<'a>
fn clone(&self) -> RecordBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
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> UnwindSafe for RecordBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more