Struct pzip::PZip

source · []
pub struct PZip { /* private fields */ }
Expand description

Structure for holding information about a PZip archive, and a namespace for common operations.

Implementations

Returns a PZipReader after reading the PZip header and tag data.

This method first reads the PZip header and does some validation. So in addition to Error::IoError caused by read failures, it may also return Error::IncorrectMagic if the file magic is incorrect, or Error::UnknownVersion if an unknown version is specified. Any of the other Unknown* errors may also be returned when trying to parse the algorithm, KDF, compression method, or tags.

Returns a PZipWriter with the specified algorithm, key, and compression.

One-shot decryption.

Streaming decryption.

One-shot encryption.

Streaming encryption.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.