pub struct PinnedFile { /* private fields */ }Expand description
A file a PinnedVersion holds in place: a table, a blob file or a
compression dictionary.
Implementations§
Source§impl PinnedFile
impl PinnedFile
Sourcepub fn level(&self) -> Option<usize>
pub fn level(&self) -> Option<usize>
The level a table sits in; None for a blob file or a dictionary.
Sourcepub fn open(&self) -> Result<Box<dyn FsFile>>
pub fn open(&self) -> Result<Box<dyn FsFile>>
Opens the file for reading through the filesystem the tree uses for it, to stream it byte for byte.
§Errors
Propagates the filesystem’s open failure.
Sourcepub fn heal_attestation(&self) -> Result<Option<PathBuf>>
pub fn heal_attestation(&self) -> Result<Option<PathBuf>>
The heal attestation lying beside a table, if it has one: the record of
an in-place heal whose digest the version does not hold yet. Shipped
beside the table (same name with .heal-attest appended), it lets the
restored tree reconcile that table as the source would.
§Errors
Propagates the filesystem’s probe failure.
Trait Implementations§
Source§impl Clone for PinnedFile
impl Clone for PinnedFile
Auto Trait Implementations§
impl !RefUnwindSafe for PinnedFile
impl !UnwindSafe for PinnedFile
impl Freeze for PinnedFile
impl Send for PinnedFile
impl Sync for PinnedFile
impl Unpin for PinnedFile
impl UnsafeUnpin for PinnedFile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more