pub struct SecurityLog { /* private fields */ }Expand description
The security log of one daemon.
Implementations§
Source§impl SecurityLog
impl SecurityLog
pub fn new(home: &Path, notify: Notify) -> Self
pub fn path(&self) -> &Path
Sourcepub fn record(&self, event: Event)
pub fn record(&self, event: Event)
Records event. Failing to write is said on stderr, the daemon’s only
other voice; it never stops the request that caused it.
Sourcepub fn read_since(&self, since_ms: i64) -> Vec<Event>
pub fn read_since(&self, since_ms: i64) -> Vec<Event>
The events at since_ms or later, oldest first, from both files.
Auto Trait Implementations§
impl !Freeze for SecurityLog
impl Forget for SecurityLog
impl RefUnwindSafe for SecurityLog
impl Send for SecurityLog
impl Sync for SecurityLog
impl Unpin for SecurityLog
impl UnsafeUnpin for SecurityLog
impl UnwindSafe for SecurityLog
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more