pub struct GitSnapshotPrecomputeInputs { /* private fields */ }Expand description
Retained exact staged payloads for zero-write Git object precomputation.
Implementations§
Source§impl GitSnapshotPrecomputeInputs
impl GitSnapshotPrecomputeInputs
Sourcepub const fn expected_archive(&self) -> &SourceArchive
pub const fn expected_archive(&self) -> &SourceArchive
Exact archive descriptor reproduced while the retained stage remains open.
Sourcepub fn descriptor_bytes(&self) -> &[u8] ⓘ
pub fn descriptor_bytes(&self) -> &[u8] ⓘ
Exact canonical descriptor bytes from the retained staged descriptor.
Sourcepub fn archive_reader(&mut self) -> Result<&mut File, GitSnapshotError>
pub fn archive_reader(&mut self) -> Result<&mut File, GitSnapshotError>
Revalidate both retained payload contents, rewind, and borrow the exact archive reader.
§Errors
Returns a typed failure for any path, identity, entry-set, content, digest, or rewind mismatch.
Sourcepub fn verify_contents(&mut self) -> Result<(), GitSnapshotError>
pub fn verify_contents(&mut self) -> Result<(), GitSnapshotError>
Reproduce both retained payloads and exact stage entry bindings.
Call this immediately after each synchronous no-write Git hash operation, especially on Unix where retained descriptors cannot prevent in-place mutation or namespace rebinding.
§Errors
Returns a typed failure for any directory, entry-set, identity, canonical byte, size, or digest mismatch.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitSnapshotPrecomputeInputs
impl RefUnwindSafe for GitSnapshotPrecomputeInputs
impl Send for GitSnapshotPrecomputeInputs
impl Sync for GitSnapshotPrecomputeInputs
impl Unpin for GitSnapshotPrecomputeInputs
impl UnsafeUnpin for GitSnapshotPrecomputeInputs
impl UnwindSafe for GitSnapshotPrecomputeInputs
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