pub struct Logger<O: LoggerOutput> { /* private fields */ }Implementations§
Source§impl<O: LoggerOutput> Logger<O>
impl<O: LoggerOutput> Logger<O>
pub fn new(output: O) -> Self
pub fn messages(&self) -> &[LogMessage]
pub fn log(&mut self, message: LogMessage)
pub fn load_module(&mut self, module: impl AsRef<str>)
pub fn unload_module(&mut self, module: impl AsRef<str>)
pub fn rollback_load_module(&mut self, module: impl AsRef<str>)
pub fn rollback_unload_module(&mut self, module: impl AsRef<str>)
pub fn create_dir(&mut self, path: impl AsRef<Path>)
pub fn create_symlink(&mut self, src: impl AsRef<Path>, dst: impl AsRef<Path>)
pub fn remove_dir(&mut self, path: impl AsRef<Path>)
pub fn remove_symlink(&mut self, src: impl AsRef<Path>, dst: impl AsRef<Path>)
Auto Trait Implementations§
impl<O> Freeze for Logger<O>where
O: Freeze,
impl<O> RefUnwindSafe for Logger<O>where
O: RefUnwindSafe,
impl<O> Send for Logger<O>where
O: Send,
impl<O> Sync for Logger<O>where
O: Sync,
impl<O> Unpin for Logger<O>where
O: Unpin,
impl<O> UnwindSafe for Logger<O>where
O: UnwindSafe,
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