Struct debian_packaging::repository::copier::RepositoryCopier[][src]

pub struct RepositoryCopier { /* fields omitted */ }
Expand description

Entity for copying Debian repository content.

Instances of this type can be used to copy select Debian repository content between a reader and a writer.

The file layout and content is preserved, so existing PGP signatures can be preserved. However, the copier does have the ability to selectively filter which files are copied. So the destination repository may reference content that doesn’t exist in that location.

Because repositories do not have a standardized mechanism for discovering dists/releases within, this type must be told which distributions to copy. Copying is performed 1 distribution at a time.

By default, instances copy all copyable content. Installer files are currently not supported. Incomplete copies for all other files is considered a bug and should be reported.

Various set_* methods exist to control the copying behavior.

Implementations

Set an explicit list of components whose files to copy.

Set whether to copy non-installer binary packages.

Set a filter for architectures of non-installer binary packages to copy.

Binary packages for architectures not in this set will be ignored.

Set whether to copy installer binary packages.

Set a filter for architectures of installer binary packages to copy.

Binary packages for architectures not in this set will be ignored.

Set whether to copy sources package files.

Perform a copy operation as defined by a RepositoryCopierConfig.

Copy content for a given distribution given a distribution name.

This is a proxy for Self::copy_distribution_path() which simply passes dists/{distribution} as the path value. This is the standard layout for Debian repositories.

Copy content for a given distribution at a path relative to the repository root.

The given distribution_path is usually prefixed with dists/. e.g. dists/bullseye. But it can be something else for non-standard repository layouts.

Trait Implementations

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more