pub struct Log {
pub timestamp: Timestamp,
pub level: u8,
pub name: String,
pub msg: String,
pub file: String,
pub function: String,
pub line: u32,
}Expand description
Fields§
§timestamp: Timestamp§level: u8§name: String§msg: String§file: String§function: String§line: u32Implementations§
Source§impl Log
impl Log
pub const INFO: u8 = 20
pub const WARN: u8 = 30
pub const ERROR: u8 = 40
pub const FATAL: u8 = 50
Sourcepub fn get_timestamp(&self) -> &Timestamp
pub fn get_timestamp(&self) -> &Timestamp
Timestamp when rosout message was sent
pub fn get_file(&self) -> &str
pub fn get_function(&self) -> &str
pub fn get_line(&self) -> u32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Log
impl<'de> Deserialize<'de> for Log
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnsafeUnpin for Log
impl UnwindSafe for Log
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