Struct ros2_client::log::Log
source · 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: u32
Implementations§
source§impl Log
impl Log
pub const INFO: u8 = 20u8
pub const WARN: u8 = 30u8
pub const ERROR: u8 = 40u8
pub const FATAL: u8 = 50u8
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 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