pub struct ReftableReader { /* private fields */ }Expand description
Reads a single reftable file from a byte buffer.
Implementations§
Source§impl ReftableReader
impl ReftableReader
Sourcepub fn lookup_ref(&self, name: &str) -> Result<Option<RefRecord>>
pub fn lookup_ref(&self, name: &str) -> Result<Option<RefRecord>>
Look up a single ref by name.
Sourcepub fn block_size(&self) -> u32
pub fn block_size(&self) -> u32
Get the block size from the header.
Sourcepub fn min_update_index(&self) -> u64
pub fn min_update_index(&self) -> u64
Get the min update index.
Sourcepub fn max_update_index(&self) -> u64
pub fn max_update_index(&self) -> u64
Get the max update index.
Auto Trait Implementations§
impl Freeze for ReftableReader
impl RefUnwindSafe for ReftableReader
impl Send for ReftableReader
impl Sync for ReftableReader
impl Unpin for ReftableReader
impl UnsafeUnpin for ReftableReader
impl UnwindSafe for ReftableReader
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