pub struct OpenPgp<'a> { /* private fields */ }
Expand description

An OpenPGP card access object, backed by a CardBackend implementation.

Most users will probably want to use the PcscCard backend from the openpgp-card-pcsc crate.

Users of this crate can keep a long lived OpenPgp object. All operations must be performed on a short lived OpenPgpTransaction.

Implementations

Get an OpenPgpTransaction object. This starts a transaction on the underlying CardBackend.

Note: transactions on the Card cannot be long running, they will be reset within seconds when idle.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.