From 9ee8f8d37ad100de76b49eae7b28f0e2dbb9c38b Mon Sep 17 00:00:00 2001 From: Asuna Date: Tue, 8 Oct 2024 02:57:41 +0800 Subject: [PATCH] Add method `RecordOwned::tid` corresponding to `Record::tid` --- spdlog/src/record.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spdlog/src/record.rs b/spdlog/src/record.rs index d52ef387..c09d03ab 100644 --- a/spdlog/src/record.rs +++ b/spdlog/src/record.rs @@ -210,6 +210,12 @@ impl RecordOwned { self.inner.time } + /// Gets the TID when the record was created. + #[must_use] + pub fn tid(&self) -> u64 { + self.inner.tid + } + // When adding more getters, also add to `Record` }