pub struct CaptureOne<'a> { /* private fields */ }Expand description
A sink that keeps one object: the fallback path’s, for when the table cannot answer and the content has to come back out of the verbatim truth.
It exists because [crate::resolve::Resolved::payload] is not a complete
answer to “what does this object contain” and never was — the resolver drops
a blob payload the moment nothing else in the pack deltas against it, so
payload is None for most blobs in most packs. Re-deriving a blob’s
content by reading that field therefore returned None for exactly the
commonest object in a repository. Through the sink the payload is seen before
it is dropped, so the fallback answers for every object the pack holds.
Implementations§
Trait Implementations§
Source§impl PayloadSink for CaptureOne<'_>
impl PayloadSink for CaptureOne<'_>
Auto Trait Implementations§
impl<'a> !Freeze for CaptureOne<'a>
impl<'a> RefUnwindSafe for CaptureOne<'a>
impl<'a> Send for CaptureOne<'a>
impl<'a> Sync for CaptureOne<'a>
impl<'a> Unpin for CaptureOne<'a>
impl<'a> UnsafeUnpin for CaptureOne<'a>
impl<'a> UnwindSafe for CaptureOne<'a>
Blanket Implementations§
impl<T> Allocation for T
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