pub struct NetworkAuditor { /* private fields */ }Expand description
Best-effort writer for the network audit log.
Implementations§
Source§impl NetworkAuditor
impl NetworkAuditor
Sourcepub fn new(path: PathBuf, enabled: bool) -> Self
pub fn new(path: PathBuf, enabled: bool) -> Self
New auditor that writes to path. enabled = false turns it into a no-op.
Sourcepub fn default_path(enabled: bool) -> Option<Self>
pub fn default_path(enabled: bool) -> Option<Self>
Auditor pointing at ~/.zagens/audit.log. Returns None if the
home directory can’t be resolved.
Trait Implementations§
Source§impl Clone for NetworkAuditor
impl Clone for NetworkAuditor
Source§fn clone(&self) -> NetworkAuditor
fn clone(&self) -> NetworkAuditor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NetworkAuditor
impl RefUnwindSafe for NetworkAuditor
impl Send for NetworkAuditor
impl Sync for NetworkAuditor
impl Unpin for NetworkAuditor
impl UnsafeUnpin for NetworkAuditor
impl UnwindSafe for NetworkAuditor
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