pub struct InspectionSet { /* private fields */ }Expand description
The sorted, deduplicated file-typed entries of the advance’s added packs.
Implementations§
Source§impl InspectionSet
impl InspectionSet
Sourcepub fn new(limit: usize) -> Self
pub fn new(limit: usize) -> Self
Create a whole-advance collector with its configured object limit.
Sourcepub fn preflight(&self, count: u64) -> Result<(), ServerError>
pub fn preflight(&self, count: u64) -> Result<(), ServerError>
Refuse the conservative count before decoding or enumeration.
§Errors
The existing index-limit error if the bound exceeds the launch limit.
Sourcepub fn reserve_added_count(&mut self, count: u64) -> Result<(), ServerError>
pub fn reserve_added_count(&mut self, count: u64) -> Result<(), ServerError>
Reserve the conservative count of all added-pack entries.
§Errors
The existing index-limit refusal when the header/job bound is oversized.
Sourcepub async fn complete_added<S: NamespaceStore>(
&mut self,
store: &S,
repo: &RepoId,
) -> Result<(), ServerError>
pub async fn complete_added<S: NamespaceStore>( &mut self, store: &S, repo: &RepoId, ) -> Result<(), ServerError>
Collect added entries after header/job preflight, without reading bytes.
§Errors
Existing indexed storage, metadata decoding and bounded-enumeration refusals.
Sourcepub fn entry(
&mut self,
id: Hash,
size: u64,
object_type: u8,
) -> Result<(), ServerError>
pub fn entry( &mut self, id: Hash, size: u64, object_type: u8, ) -> Result<(), ServerError>
Insert verified metadata, ignoring non-file object types.
§Errors
Index-limit refusal or inconsistent immutable metadata.
Sourcepub fn finalize(self) -> Vec<InspectObject>
pub fn finalize(self) -> Vec<InspectObject>
Final metadata in stable object-id order.
Trait Implementations§
Source§impl Clone for InspectionSet
impl Clone for InspectionSet
Source§impl Debug for InspectionSet
impl Debug for InspectionSet
impl Eq for InspectionSet
Source§impl PartialEq for InspectionSet
impl PartialEq for InspectionSet
impl StructuralPartialEq for InspectionSet
Auto Trait Implementations§
impl Freeze for InspectionSet
impl RefUnwindSafe for InspectionSet
impl Send for InspectionSet
impl Sync for InspectionSet
impl Unpin for InspectionSet
impl UnsafeUnpin for InspectionSet
impl UnwindSafe for InspectionSet
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