pub struct Compact<'a> { /* private fields */ }Expand description
compact runner.
Implementations§
Source§impl<'a> Compact<'a>
impl<'a> Compact<'a>
Sourcepub fn new(
store: Arc<dyn ObjectStore>,
prefix: impl Into<String>,
opts: CompactOpts,
prompter: &'a dyn Prompter,
) -> Self
pub fn new( store: Arc<dyn ObjectStore>, prefix: impl Into<String>, opts: CompactOpts, prompter: &'a dyn Prompter, ) -> 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,
ManageError::Packchain for engine-level failures during
chain install / repack, ManageError::InvalidBranch when
--ref value fails ref-name validation,
ManageError::BranchNotFound when a named ref has no
chain.json, and ManageError::Cancelled when the operator
declines the interactive prompt.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Compact<'a>
impl<'a> !UnwindSafe for Compact<'a>
impl<'a> Freeze for Compact<'a>
impl<'a> Send for Compact<'a>
impl<'a> Sync for Compact<'a>
impl<'a> Unpin for Compact<'a>
impl<'a> UnsafeUnpin for Compact<'a>
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.