pub struct ControlTarBuilder<'a> { /* private fields */ }
Expand description

A builder for a control.tar file inside .deb packages.

Implementations

Create a new instance from a control file.

Add an extra file to the control archive.

This is usually used to add maintainer scripts. Maintainer scripts are special scripts like preinst and postrm that are executed during certain activities.

Add a data file to be indexed.

This should be called for every file in the corresponding data.tar archive in the .deb archive.

path is the relative path the file will be installed to. reader is a reader to obtain the file content.

This method has the side-effect of computing the checksum for the path so a checksums entry can be written.

Write the control.tar file to a writer.

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