Struct gpgme::Token
[−]
[src]
pub struct Token(_);
A type for managing global resources within the library.
Methods
impl Token
fn check_version<S: Into<Vec<u8>>>(&self, version: S) -> 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"));
fn version(&self) -> &'static str
Returns the version string for the library.
fn get_dir_info<S: Into<Vec<u8>>>(&self, what: S) -> StrResult<'static>
Returns the default value for specified configuration option.
Commonly supported values for what
are specified in info
.
This function requires a version of GPGme >= 1.5.0.
fn check_engine_version(&self, proto: Protocol) -> Result<()>
Checks that the engine implementing the specified protocol is supported by the library.