Struct tugger_debian::ControlTarBuilder[][src]

pub struct ControlTarBuilder<'a> { /* fields omitted */ }
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.

Performs the conversion.

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.