pub struct SelectionStorage<'a> {
pub wants: &'a mut [ObjectId],
pub objects: &'a mut [Option<ValidationMetadata>],
pub indices: &'a mut [usize],
pub read: &'a mut [u8],
pub parse: &'a mut [u8],
pub graph_read_limit: u64,
}Expand description
Independent per-request storage for bounded reachable-object selection.
wants bounds distinct wanted IDs. objects and indices each need the
repository’s complete object count; their extra slots remain untouched.
Read/parse scratch budgets match ValidatedRepository::select_objects.
Fields§
§wants: &'a mut [ObjectId]§objects: &'a mut [Option<ValidationMetadata>]§indices: &'a mut [usize]§read: &'a mut [u8]§parse: &'a mut [u8]§graph_read_limit: u64Maximum structural bytes read while traversing a request’s graph.
Implementations§
Source§impl SelectionStorage<'_>
impl SelectionStorage<'_>
Sourcepub fn reborrow(&mut self) -> SelectionStorage<'_>
pub fn reborrow(&mut self) -> SelectionStorage<'_>
Borrow the same arrays for one request without moving the host descriptor.
Auto Trait Implementations§
impl<'a> !UnwindSafe for SelectionStorage<'a>
impl<'a> Freeze for SelectionStorage<'a>
impl<'a> RefUnwindSafe for SelectionStorage<'a>
impl<'a> Send for SelectionStorage<'a>
impl<'a> Sync for SelectionStorage<'a>
impl<'a> Unpin for SelectionStorage<'a>
impl<'a> UnsafeUnpin for SelectionStorage<'a>
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