pub struct Log;
Expand description
Responsible for event log messages.
Implementations§
Source§impl Log
impl Log
Sourcepub fn info(number: u16, text: Option<String>) -> String
pub fn info(number: u16, text: Option<String>) -> String
Save informational message only to log file.
§Parameters
number: u16
- Log number;text: Option<String>
- Additional log description.
Sourcepub fn warning(number: u16, text: Option<String>) -> String
pub fn warning(number: u16, text: Option<String>) -> String
Save warning message to log file, the program may continue to run.
§Parameters
number: u16
- Log number;text: Option<String>
- Additional log description.
Sourcepub fn stop(number: u16, text: Option<String>) -> String
pub fn stop(number: u16, text: Option<String>) -> String
Save stop message to log file, the program must soft stop.
§Parameters
number: u16
- Log number;text: Option<String>
- Additional log description.
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