pub struct PackListNode {
pub prev: Option<Hash>,
pub packs: Vec<Hash>,
}Expand description
A single node in a branch’s packlist chain.
The push path appends one node per push: prev points at the previous
node (the current packmap value before this push), and packs holds the
pack(s) this push added. The full ordered pack set for a branch is the
chain walked oldest-first — see remote_dispatch::fetch_pack_chain.
Chaining keeps each push O(1) on the wire (read a 32-byte pointer, write a ~64-byte node) instead of re-uploading the whole history’s list.
A node’s prev is reset to None (rather than linked to the prior head)
when a push re-baselines (#406) — proactively bounding chain depth, or
reactively escaping a broken chain. Either way the packs the superseded
chain referenced become unreachable from the new head node: they are not
deleted here (this module only ever writes new nodes/packs, never
deletes), so they linger as orphaned storage on the remote until a
server-side sweep reclaims them (tracked as makechain#849). A stale
pack lingering harmlessly is safe; nothing on the fetch side ever
resolves it once no live chain points to it.
Fields§
§prev: Option<Hash>Previous node’s key, or None for the first node of a branch.
packs: Vec<Hash>Pack keys added by this node, in apply order.
Trait Implementations§
Source§impl Clone for PackListNode
impl Clone for PackListNode
Source§fn clone(&self) -> PackListNode
fn clone(&self) -> PackListNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PackListNode
impl Debug for PackListNode
impl Eq for PackListNode
Source§impl PartialEq for PackListNode
impl PartialEq for PackListNode
impl StructuralPartialEq for PackListNode
Auto Trait Implementations§
impl Freeze for PackListNode
impl RefUnwindSafe for PackListNode
impl Send for PackListNode
impl Sync for PackListNode
impl Unpin for PackListNode
impl UnsafeUnpin for PackListNode
impl UnwindSafe for PackListNode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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