pub struct FileLog { /* private fields */ }Expand description
An append-only log file with ETB commits. Each commit is flushed and,
when sync is set, fsync’d. Dropping the value closes the file.
Implementations§
Source§impl FileLog
impl FileLog
Sourcepub fn start(&mut self, heading: &[(&str, &str)]) -> Result<()>
pub fn start(&mut self, heading: &[(&str, &str)]) -> Result<()>
A new log: SYN and its heading, committed.
pub fn record<T: AsRef<[u8]>>(&mut self, fields: &[T]) -> Result<()>
pub fn map<T: AsRef<[u8]>>(&mut self, pairs: &[(&str, T)]) -> Result<()>
pub fn header(&mut self, names: &[&str]) -> Result<()>
pub fn group(&mut self, name: &str, headers: Option<&[&str]>) -> Result<()>
Auto Trait Implementations§
impl Forget for FileLog
impl Freeze for FileLog
impl Move for FileLog
impl RefUnwindSafe for FileLog
impl Send for FileLog
impl Sync for FileLog
impl Unpin for FileLog
impl UnsafeUnpin for FileLog
impl UnwindSafe for FileLog
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