pub struct FileSink { /* private fields */ }Expand description
Append-only file sink, one JSON event per line.
The file is opened in append mode with mode 0o600 on Unix (the
audit stream may carry which URLs were accessed and at what time;
that’s not a secret value but it is process-history a hostile
uid-peer should not necessarily read). A Mutex<File> serializes
writes so concurrent emitters cannot interleave bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FileSink
impl RefUnwindSafe for FileSink
impl Send for FileSink
impl Sync for FileSink
impl Unpin for FileSink
impl UnsafeUnpin for FileSink
impl UnwindSafe for FileSink
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