pub struct Logger<T>{ /* private fields */ }Implementations§
Source§impl<T> Logger<T>
impl<T> Logger<T>
pub fn new<P: Into<PathBuf>>( file_path: P, buffer_size: usize, final_format_json: bool, ) -> Self
pub fn add(&mut self, data: T) -> Result<(), NanonisError>
pub fn flush(&mut self) -> Result<(), NanonisError>
Sourcepub fn finalize_as_json(&mut self) -> Result<(), NanonisError>
pub fn finalize_as_json(&mut self) -> Result<(), NanonisError>
Convert JSONL file to JSON array format (for final post-experiment analysis)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Logger<T>
impl<T> RefUnwindSafe for Logger<T>where
T: RefUnwindSafe,
impl<T> Send for Logger<T>where
T: Send,
impl<T> Sync for Logger<T>where
T: Sync,
impl<T> Unpin for Logger<T>where
T: Unpin,
impl<T> UnwindSafe for Logger<T>where
T: UnwindSafe,
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