[][src]Struct gpgme::keys::Subkey

pub struct Subkey<'key>(_, _);

Upstream documentation: gpgme_subkey_t

Methods

impl<'key> Subkey<'key>[src]

pub unsafe fn from_raw(raw: gpgme_subkey_t) -> Self[src]

pub fn as_raw(&self) -> gpgme_subkey_t[src]

pub fn into_raw(self) -> gpgme_subkey_t[src]

pub fn id(&self) -> Result<&'key str, Option<Utf8Error>>[src]

pub fn id_raw(&self) -> Option<&'key CStr>[src]

pub fn fingerprint(&self) -> Result<&'key str, Option<Utf8Error>>[src]

pub fn fingerprint_raw(&self) -> Option<&'key CStr>[src]

pub fn creation_time(&self) -> Option<SystemTime>[src]

pub fn expiration_time(&self) -> Option<SystemTime>[src]

pub fn never_expires(&self) -> bool[src]

pub fn is_revoked(&self) -> bool[src]

pub fn is_expired(&self) -> bool[src]

pub fn is_invalid(&self) -> bool[src]

pub fn is_disabled(&self) -> bool[src]

pub fn can_encrypt(&self) -> bool[src]

pub fn can_sign(&self) -> bool[src]

pub fn can_certify(&self) -> bool[src]

pub fn can_authenticate(&self) -> bool[src]

pub fn is_qualified(&self) -> bool[src]

pub fn is_card_key(&self) -> bool[src]

pub fn is_secret(&self) -> bool[src]

pub fn is_de_vs(&self) -> bool[src]

pub fn algorithm(&self) -> KeyAlgorithm[src]

pub fn algorithm_name(&self) -> Result<String>[src]

Upstream documentation: gpgme_pubkey_algo_string

pub fn keygrip(&self) -> Result<&'key str, Option<Utf8Error>>[src]

pub fn keygrip_raw(&self) -> Option<&'key CStr>[src]

pub fn length(&self) -> usize[src]

pub fn card_serial_number(&self) -> Result<&'key str, Option<Utf8Error>>[src]

pub fn card_serial_number_raw(&self) -> Option<&'key CStr>[src]

pub fn curve(&self) -> Result<&'key str, Option<Utf8Error>>[src]

pub fn curve_raw(&self) -> Option<&'key CStr>[src]

Trait Implementations

impl<'_> Send for Subkey<'_>[src]

impl<'_> Sync for Subkey<'_>[src]

impl<'key> Clone for Subkey<'key>[src]

impl<'key> Copy for Subkey<'key>[src]

impl<'_> Debug for Subkey<'_>[src]

Auto Trait Implementations

impl<'key> Unpin for Subkey<'key>

impl<'key> UnwindSafe for Subkey<'key>

impl<'key> RefUnwindSafe for Subkey<'key>

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.