Enum libpijul_compat::patch::Patch [] [src]

pub enum Patch {
    Unsigned(UnsignedPatch),
    Signed {
        patch: UnsignedPatch,
        signature: Signature,
    },
}

The definition of a patch.

Variants

Fields of Signed

Methods

impl Patch
[src]

[src]

The contents of this patch.

[src]

[src]

The dependencies of this patch.

[src]

[src]

The header of this patch.

[src]

[src]

Reads everything in this patch, but the actual contents.

impl Patch
[src]

[src]

An approximate upper bound of the number of extra bytes in the database this patch might require. This depends a lot on the patch and the database, so it might be wrong.

[src]

Read one patch from a gzip-compressed BufRead. If several patches are available in the same BufRead, this method can be called again.

[src]

Public key of this patch's signature.

[src]

Save the patch, computing the hash.

Methods from Deref<Target = PatchHeader>

Trait Implementations

impl Debug for Patch
[src]

[src]

Formats the value using the given formatter.

impl Clone for Patch
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Deref for Patch
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl DerefMut for Patch
[src]

[src]

Mutably dereferences the value.