pub struct Reachability { /* private fields */ }Expand description
An exact object-ID set, sorted by identity, retaining the object-store snapshot used to find it.
Packed handles stay pinned through Self::objects. Loose objects remain live filesystem
reads; this result does not prevent another writer from removing them. It is suitable for
selecting a fetch response after the caller has resolved and authorized the want/have tips.
Implementations§
Source§impl Reachability
impl Reachability
Sourcepub fn ids(&self) -> impl ExactSizeIterator<Item = ObjectId> + '_
pub fn ids(&self) -> impl ExactSizeIterator<Item = ObjectId> + '_
Object identities in ascending order.
Sourcepub fn count(&self, kind: ObjectKind) -> usize
pub fn count(&self, kind: ObjectKind) -> usize
Number of result objects of kind.
Trait Implementations§
Source§impl Clone for Reachability
impl Clone for Reachability
Auto Trait Implementations§
impl Freeze for Reachability
impl RefUnwindSafe for Reachability
impl Send for Reachability
impl Sync for Reachability
impl Unpin for Reachability
impl UnsafeUnpin for Reachability
impl UnwindSafe for Reachability
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