pub struct ActiveFileInfo { /* private fields */ }Expand description
Information about a currently active file being written to
Implementations§
Source§impl ActiveFileInfo
impl ActiveFileInfo
Sourcepub const fn size_bytes(&self) -> u64
pub const fn size_bytes(&self) -> u64
Get the current file size in bytes
Sourcepub const fn record_count(&self) -> u64
pub const fn record_count(&self) -> u64
Get the current record count
Sourcepub const fn created_at(&self) -> SystemTime
pub const fn created_at(&self) -> SystemTime
Get when the file was created
Sourcepub const fn last_written(&self) -> SystemTime
pub const fn last_written(&self) -> SystemTime
Get when the file was last written to
Sourcepub fn update_stats(&mut self, size_delta: u64, record_delta: u64)
pub fn update_stats(&mut self, size_delta: u64, record_delta: u64)
Update file statistics
Trait Implementations§
Source§impl Clone for ActiveFileInfo
impl Clone for ActiveFileInfo
Source§fn clone(&self) -> ActiveFileInfo
fn clone(&self) -> ActiveFileInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ActiveFileInfo
impl RefUnwindSafe for ActiveFileInfo
impl Send for ActiveFileInfo
impl Sync for ActiveFileInfo
impl Unpin for ActiveFileInfo
impl UnwindSafe for ActiveFileInfo
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