pub struct GcReachability {
pub live_cids: Vec<Cid>,
pub live_nodes: usize,
pub live_bytes: usize,
pub leaf_nodes: usize,
pub internal_nodes: usize,
}Expand description
Live node set discovered from one or more retained tree roots.
Fields§
§live_cids: Vec<Cid>Reachable content-addressed node CIDs, sorted by CID bytes.
live_nodes: usizeNumber of reachable nodes.
live_bytes: usizeSerialized byte weight of reachable nodes as encoded by the current node serializer.
leaf_nodes: usizeNumber of reachable leaf nodes.
internal_nodes: usizeNumber of reachable internal nodes.
Implementations§
Trait Implementations§
Source§impl Clone for GcReachability
impl Clone for GcReachability
Source§fn clone(&self) -> GcReachability
fn clone(&self) -> GcReachability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GcReachability
impl Debug for GcReachability
Source§impl Default for GcReachability
impl Default for GcReachability
Source§fn default() -> GcReachability
fn default() -> GcReachability
Returns the “default value” for a type. Read more
impl Eq for GcReachability
Source§impl PartialEq for GcReachability
impl PartialEq for GcReachability
impl StructuralPartialEq for GcReachability
Auto Trait Implementations§
impl Freeze for GcReachability
impl RefUnwindSafe for GcReachability
impl Send for GcReachability
impl Sync for GcReachability
impl Unpin for GcReachability
impl UnsafeUnpin for GcReachability
impl UnwindSafe for GcReachability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more