[−][src]Struct gpgme::Gpgme
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]
&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.
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]
&self,
proto: Protocol,
path: impl CStrArgument
) -> Result<()>
pub fn set_engine_home_dir(
&self,
proto: Protocol,
home_dir: impl CStrArgument
) -> Result<()>
[src]
&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]
&self,
proto: Protocol,
path: Option<impl CStrArgument>,
home_dir: Option<impl CStrArgument>
) -> Result<()>
Upstream documentation:
gpgme_set_engine_info
Trait Implementations
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Src where
Scheme: ApproxScheme,
[src]
Scheme: ApproxScheme,
type Err = NoError
The error type produced by a failed conversion.
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
[src]
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src where
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
[src]
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
[src]
impl<Src> ValueFrom<Src> for Src
[src]
type Err = NoError
The error type produced by a failed conversion.
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
[src]
impl<Src, Dst> ValueInto<Dst> for Src where
Dst: ValueFrom<Src>,
[src]
Dst: ValueFrom<Src>,
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
[src]
impl<T> ConvUtil for T
[src]
fn approx_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
[src]
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Scheme: ApproxScheme,
Self: ApproxInto<Dst, Scheme>,
[src]
Scheme: ApproxScheme,
Self: ApproxInto<Dst, Scheme>,
fn into_as<Dst>(self) -> Dst where
Self: Into<Dst>,
[src]
Self: Into<Dst>,
fn try_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: TryInto<Dst>,
[src]
Self: TryInto<Dst>,
fn value_as<Dst>(self) -> Result<Dst, Self::Err> where
Self: ValueInto<Dst>,
[src]
Self: ValueInto<Dst>,
impl<T, Dst> ConvAsUtil<Dst> for T
[src]
fn approx(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, DefaultApprox>,
[src]
Self: ApproxInto<Dst, DefaultApprox>,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err> where
Scheme: ApproxScheme,
Self: ApproxInto<Dst, Scheme>,
[src]
Scheme: ApproxScheme,
Self: ApproxInto<Dst, Scheme>,
impl<Src> TryFrom<Src> for Src
[src]
type Err = NoError
The error type produced by a failed conversion.
fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>
[src]
impl<Src, Dst> TryInto<Dst> for Src where
Dst: TryFrom<Src>,
[src]
Dst: TryFrom<Src>,