pub struct RevisionState<'a> { /* private fields */ }Expand description
One caller-owned byte per repository object. Existing metadata/storage layouts remain unchanged. Recreate this descriptor for every request/retry; arrays are reset by selection, and failures invalidate all results.
Implementations§
Source§impl<'a> RevisionState<'a>
impl<'a> RevisionState<'a>
pub fn new(states: &'a mut [u8], limits: RevisionLimits) -> RevisionState<'a>
pub fn max_exclusions(&self) -> usize
Sourcepub fn changes<'b>(
&'b self,
objects: &'b [Option<ValidationMetadata>],
) -> impl Iterator<Item = ShallowChange> + 'b
pub fn changes<'b>( &'b self, objects: &'b [Option<ValidationMetadata>], ) -> impl Iterator<Item = ShallowChange> + 'b
Changes may include commits absent from the returned PACK. Pass the same metadata work array used by the successful selection, without modifying it.
Auto Trait Implementations§
impl<'a> !UnwindSafe for RevisionState<'a>
impl<'a> Freeze for RevisionState<'a>
impl<'a> RefUnwindSafe for RevisionState<'a>
impl<'a> Send for RevisionState<'a>
impl<'a> Sync for RevisionState<'a>
impl<'a> Unpin for RevisionState<'a>
impl<'a> UnsafeUnpin for RevisionState<'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