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
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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GpgContext
impl !Send for GpgContext
impl !Sync for GpgContext
impl Unpin for GpgContext
impl UnwindSafe for GpgContext
Blanket Implementations
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
Mutably borrows from an owned value. Read more
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
Attempt to convert the subject to a given type.
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.