pub struct Gc { /* private fields */ }Expand description
gc runner. Held by the CLI for the lifetime of one invocation.
Implementations§
Source§impl Gc
impl Gc
Sourcepub fn new(
store: Arc<dyn ObjectStore>,
prefix: impl Into<String>,
opts: GcOpts,
) -> Self
pub fn new( store: Arc<dyn ObjectStore>, prefix: impl Into<String>, opts: GcOpts, ) -> Self
Construct a runner. prefix is the parsed remote URL’s
repository prefix without a trailing slash; pass an empty
string for bucket-root repositories.
Sourcepub async fn run(&self) -> Result<(), ManageError>
pub async fn run(&self) -> Result<(), ManageError>
Execute the configured flow.
§Errors
Returns ManageError::Store for transport failures and
ManageError::Packchain for engine-level failures (corrupt
chain.json, schema-version mismatch).
Auto Trait Implementations§
impl !RefUnwindSafe for Gc
impl !UnwindSafe for Gc
impl Freeze for Gc
impl Send for Gc
impl Sync for Gc
impl Unpin for Gc
impl UnsafeUnpin for Gc
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> 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>
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 moreCreates a shared type from an unshared type.