pub struct FileMetadata { /* private fields */ }Expand description
File-level metadata retained by a Reader snapshot.
Implementations§
Source§impl FileMetadata
impl FileMetadata
Sourcepub fn format_version(&self) -> (u16, u16)
pub fn format_version(&self) -> (u16, u16)
The format version declared by the file prologue.
Sourcepub fn feature_flags(&self) -> u64
pub fn feature_flags(&self) -> u64
The prologue feature flags.
Sourcepub fn file_id(&self) -> &[u8; 16]
pub fn file_id(&self) -> &[u8; 16]
The opaque file ID from the prologue. It is identity metadata, not a content hash.
Sourcepub fn last_good_offset(&self) -> u64
pub fn last_good_offset(&self) -> u64
The byte after the last complete committed frame.
Sourcepub fn block_count(&self) -> u64
pub fn block_count(&self) -> u64
The number of complete data blocks in this snapshot.
Sourcepub fn total_rows(&self) -> u64
pub fn total_rows(&self) -> u64
The checked sum of the row counts of all complete data blocks.
Sourcepub fn incomplete_tail(&self) -> bool
pub fn incomplete_tail(&self) -> bool
Whether a final append ended before its next frame was committed.
False means the snapshot ends exactly after its last committed frame.
Trait Implementations§
Source§impl Clone for FileMetadata
impl Clone for FileMetadata
Source§fn clone(&self) -> FileMetadata
fn clone(&self) -> FileMetadata
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 moreSource§impl Debug for FileMetadata
impl Debug for FileMetadata
impl Eq for FileMetadata
Source§impl PartialEq for FileMetadata
impl PartialEq for FileMetadata
impl StructuralPartialEq for FileMetadata
Auto Trait Implementations§
impl Freeze for FileMetadata
impl RefUnwindSafe for FileMetadata
impl Send for FileMetadata
impl Sync for FileMetadata
impl Unpin for FileMetadata
impl UnsafeUnpin for FileMetadata
impl UnwindSafe for FileMetadata
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