Struct gpgme::Gpgme [−][src]
pub struct Gpgme { /* fields omitted */ }
A type for managing the library's configuration.
Methods
impl Gpgme
[src]
impl Gpgme
pub const HOME_DIR: &'static str
HOME_DIR: &'static str = "homedir"
pub const AGENT_SOCKET: &'static str
AGENT_SOCKET: &'static str = "agent-socket"
pub const UISERVER_SOCKET: &'static str
UISERVER_SOCKET: &'static str = "uiserver-socket"
pub const GPGCONF_NAME: &'static str
GPGCONF_NAME: &'static str = "gpgconf-name"
pub const GPG_NAME: &'static str
GPG_NAME: &'static str = "gpg-name"
pub const GPGSM_NAME: &'static str
GPGSM_NAME: &'static str = "gpgsm-name"
pub const G13_NAME: &'static str
G13_NAME: &'static str = "g13-name"
pub fn check_version(
&self,
version: impl CStrArgument
) -> bool
[src]
pub fn check_version(
&self,
version: impl CStrArgument
) -> bool
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
.
Examples
let gpgme = gpgme::init(); assert!(gpgme.check_version("1.4.0"));
pub fn version(&self) -> &'static str
[src]
pub fn version(&self) -> &'static str
Returns the version string for the library.
pub fn get_dir_info(
&self,
what: impl CStrArgument
) -> Result<&'static str, Option<Utf8Error>>
[src]
pub fn get_dir_info(
&self,
what: impl CStrArgument
) -> Result<&'static str, Option<Utf8Error>>
Returns the default value for specified configuration option.
Commonly supported values for what
are provided as associated constants.
pub fn get_dir_info_raw(
&self,
what: impl CStrArgument
) -> Option<&'static CStr>
[src]
pub fn get_dir_info_raw(
&self,
what: impl CStrArgument
) -> Option<&'static CStr>
Returns the default value for specified configuration option.
Commonly supported values for what
are provided as associated constants.
pub fn check_engine_version(&self, proto: Protocol) -> Result<()>
[src]
pub fn check_engine_version(&self, proto: Protocol) -> Result<()>
Checks that the engine implementing the specified protocol is supported by the library.
pub fn engine_info(&self) -> Result<EngineInfoGuard>
[src]
pub fn engine_info(&self) -> Result<EngineInfoGuard>
pub fn set_engine_path(
&self,
proto: Protocol,
path: impl CStrArgument
) -> Result<()>
[src]
pub fn set_engine_path(
&self,
proto: Protocol,
path: impl CStrArgument
) -> Result<()>
pub fn set_engine_home_dir(
&self,
proto: Protocol,
home_dir: impl CStrArgument
) -> Result<()>
[src]
pub fn set_engine_home_dir(
&self,
proto: Protocol,
home_dir: impl CStrArgument
) -> Result<()>
pub fn set_engine_info(
&self,
proto: Protocol,
path: Option<impl CStrArgument>,
home_dir: Option<impl CStrArgument>
) -> Result<()>
[src]
pub fn set_engine_info(
&self,
proto: Protocol,
path: Option<impl CStrArgument>,
home_dir: Option<impl CStrArgument>
) -> Result<()>
Trait Implementations
impl Debug for Gpgme
[src]
impl Debug for Gpgme
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Gpgme
[src]
impl Clone for Gpgme