Struct diem_logger::Metadata
source · pub struct Metadata { /* private fields */ }
Expand description
Associated metadata with every log to identify what kind of log and where it came from
Implementations§
source§impl Metadata
impl Metadata
pub const fn new( level: Level, target: &'static str, module_path: &'static str, file: &'static str, line: u32, location: &'static str ) -> Self
pub fn enabled(&self) -> bool
pub fn level(&self) -> Level
pub fn target(&self) -> &'static str
pub fn module_path(&self) -> &'static str
pub fn file(&self) -> &'static str
pub fn line(&self) -> u32
pub fn location(&self) -> &'static str
Trait Implementations§
source§impl Deserialize<'static> for Metadata
impl Deserialize<'static> for Metadata
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Metadata
Auto Trait Implementations§
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnwindSafe for Metadata
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