pub struct Log { /* private fields */ }
Implementations§
Source§impl Log
impl Log
pub fn new<T>(path: T, file_size: usize, interval_millis: usize) -> Self
pub fn error<T, L>(&self, data: T, func: L)where
T: LogDataTrait,
L: LogFuncTrait,
pub fn info<T, L>(&self, data: T, func: L)where
T: LogDataTrait,
L: LogFuncTrait,
pub fn debug<T, L>(&self, data: T, func: L)where
T: LogDataTrait,
L: LogFuncTrait,
Source§impl Log
impl Log
pub fn get_path(&self) -> &String
pub fn get_mut_path(&mut self) -> &mut String
pub fn set_path(&mut self, val: String) -> &mut Self
pub fn get_file_size(&self) -> &usize
pub fn get_mut_file_size(&mut self) -> &mut usize
pub fn set_file_size(&mut self, val: usize) -> &mut Self
pub fn get_interval_millis(&self) -> &usize
pub fn get_mut_interval_millis(&mut self) -> &mut usize
pub fn set_interval_millis(&mut self, val: usize) -> &mut Self
Trait Implementations§
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