pub struct Log { /* private fields */ }
Implementations§
Source§impl Log
impl Log
pub fn new<T>(path: T, file_size: usize) -> Self
pub fn log_error<T, L>(&self, data: T, func: L)where
T: LogDataTrait,
L: LogFuncTrait,
pub fn log_info<T, L>(&self, data: T, func: L)where
T: LogDataTrait,
L: LogFuncTrait,
pub fn log_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
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