Skip to main content

GcArm

Enum GcArm 

Source
pub enum GcArm {
    NewGeneration,
    CompactInPlace,
}
Expand description

Which Gc GitOps::gc runs as its third step, after reachability and after the dead index rows are dropped.

Variants§

§

NewGeneration

NewGeneration — the default. Hard-link, compact the link, verify the result by reading every entry back, rename to x.gN.znippy, unlink the old generation last. A death at any point leaves at least one complete readable archive.

§

CompactInPlace

CompactInPlace — base znippy’s compact_archive against the archive under its own name: stage beside it, rename over it. Verification is post-hoc: by the time there is something to read back, the original is already gone. One archive on disk instead of two, and no generation suffix — which is the reason to pick it — at the price of that window.

Implementations§

Source§

impl GcArm

Source

pub const ALL: [GcArm; 2]

Source

pub fn as_str(self) -> &'static str

Source

pub fn strategy(self) -> &'static str

The name the built implementation reports through Gc::name, which is also what lands in GcReport::strategy — the applied output a guard reads.

Source

pub fn create(self) -> Box<dyn Gc + Send + Sync>

Build it. Send + Sync because a GitStore is shared across the indexer’s threads.

Source

pub fn parse(s: &str) -> Result<Self>

Trait Implementations§

Source§

impl Clone for GcArm

Source§

fn clone(&self) -> GcArm

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for GcArm

Source§

impl Debug for GcArm

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for GcArm

Source§

fn default() -> GcArm

Returns the “default value” for a type. Read more
Source§

impl Eq for GcArm

Source§

impl PartialEq for GcArm

Source§

fn eq(&self, other: &GcArm) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for GcArm

Auto Trait Implementations§

§

impl Freeze for GcArm

§

impl RefUnwindSafe for GcArm

§

impl Send for GcArm

§

impl Sync for GcArm

§

impl Unpin for GcArm

§

impl UnsafeUnpin for GcArm

§

impl UnwindSafe for GcArm

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.