pub struct Audit { /* private fields */ }Implementations§
Source§impl Audit
impl Audit
Sourcepub fn open(dir: PathBuf, host: &str) -> Result<Self>
pub fn open(dir: PathBuf, host: &str) -> Result<Self>
Open the log in dir, creating it and today’s file. A log that
cannot be written is an error here, at startup: the alternative is a
session whose every record quietly goes nowhere.
pub fn session(&self) -> &str
pub fn dir(&self) -> &PathBuf
Auto Trait Implementations§
impl !Freeze for Audit
impl RefUnwindSafe for Audit
impl Send for Audit
impl Sync for Audit
impl Unpin for Audit
impl UnsafeUnpin for Audit
impl UnwindSafe for Audit
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