[][src]Struct gpgme::Gpgme

pub struct Gpgme { /* fields omitted */ }

A type for managing the library's configuration.

Methods

impl Gpgme[src]

pub const HOME_DIR: &'static str[src]

pub const AGENT_SOCKET: &'static str[src]

pub const UISERVER_SOCKET: &'static str[src]

pub const GPGCONF_NAME: &'static str[src]

pub const GPG_NAME: &'static str[src]

pub const GPGSM_NAME: &'static str[src]

pub const G13_NAME: &'static str[src]

pub fn check_version(&self, version: impl CStrArgument) -> bool[src]

Checks that the linked version of the library is at least the specified version.

Note: false is returned, if version is not in the format MAJOR.MINOR.MICRO.

Upstream documentation: gpgme_check_version

Examples

let gpgme = gpgme::init();
assert!(gpgme.check_version("1.4.0"));

pub fn version(&self) -> &'static str[src]

Returns the version string for the library.

pub fn get_dir_info(
    &self,
    what: impl CStrArgument
) -> Result<&'static str, Option<Utf8Error>>
[src]

Returns the default value for specified configuration option.

Commonly supported values for what are provided as associated constants.

Upstream documentation: gpgme_get_dirinfo

pub fn get_dir_info_raw(&self, what: impl CStrArgument) -> Option<&'static CStr>[src]

Returns the default value for specified configuration option.

Commonly supported values for what are provided as associated constants.

Upstream documentation: gpgme_get_dirinfo

pub fn check_engine_version(&self, proto: Protocol) -> Result<()>[src]

Checks that the engine implementing the specified protocol is supported by the library.

Upstream documentation: gpgme_engine_check_version

pub fn engine_info(&self) -> Result<EngineInfoGuard>[src]

Returns an iterator yielding information on each of the globally configured engines.

Upstream documentation: gpgme_get_engine_info

pub fn set_engine_path(
    &self,
    proto: Protocol,
    path: impl CStrArgument
) -> Result<()>
[src]

pub fn set_engine_home_dir(
    &self,
    proto: Protocol,
    home_dir: impl CStrArgument
) -> Result<()>
[src]

pub fn set_engine_info(
    &self,
    proto: Protocol,
    path: Option<impl CStrArgument>,
    home_dir: Option<impl CStrArgument>
) -> Result<()>
[src]

Upstream documentation: gpgme_set_engine_info

Trait Implementations

impl Clone for Gpgme[src]

impl Debug for Gpgme[src]

Auto Trait Implementations

impl Send for Gpgme

impl Sync for Gpgme

impl Unpin for Gpgme

impl UnwindSafe for Gpgme

impl RefUnwindSafe for Gpgme

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
    Scheme: ApproxScheme
[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
    Dst: ApproxFrom<Src, Scheme>,
    Scheme: ApproxScheme
[src]

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.

impl<Src> ValueFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> ValueInto<Dst> for Src where
    Dst: ValueFrom<Src>, 
[src]

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.

impl<T> ConvUtil for T[src]

impl<T, Dst> ConvAsUtil<Dst> for T[src]

impl<Src> TryFrom<Src> for Src[src]

type Err = NoError

The error type produced by a failed conversion.

impl<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.