Struct gpg_tui::gpg::context::GpgContext[][src]

pub struct GpgContext {
    pub config: GpgConfig,
    // some fields omitted
}
Expand description

A context for cryptographic operations.

Fields

config: GpgConfig

GPGME configuration manager.

Implementations

Constructs a new instance of GpgContext.

Applies the current configuration values to the context.

Returns the configured file path.

output_dir is used for output directory.

Returns the public/secret key with the specified ID.

Returns a list of all public/secret keys matching one or more of the specified patterns.

Returns the all available keys and their types in a HashMap.

Adds the given keys to the keyring.

Returns the exported public/secret keys matching one or more of the specified patterns.

Exports keys and saves them to the specified/default path.

Sends the given key to the default keyserver.

Deletes the specified public/secret key.

Searches the keyring for finding the specified key ID for deleting it.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The error type produced by a failed conversion.

Convert the given value into an approximately equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an approximately equivalent representation.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Approximate the subject with the default scheme.

Approximate the subject with a specific scheme.

Approximate the subject to a given type with the default scheme.

Approximate the subject to a given type with a specific scheme.

Convert the subject to a given type.

Attempt to convert the subject to a given type.

Attempt a value conversion of the subject to a given type.

Performs the conversion.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into the subject type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the subject into the destination type.

The type returned in the event of a conversion error.

Performs the conversion.

The error type produced by a failed conversion.

Convert the given value into an exactly equivalent representation.

The error type produced by a failed conversion.

Convert the subject into an exactly equivalent representation.