Struct aptos_logger_link::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
sourceimpl Metadata
impl Metadata
pub const fn new(
level: Level,
target: &'static str,
module_path: &'static str,
source_path: &'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 source_path(&self) -> &'static str
Trait Implementations
sourceimpl Deserialize<'static> for Metadata
impl Deserialize<'static> for Metadata
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more