pub struct ReadOnlyKeyring { /* private fields */ }Expand description
Read-only interface for querying a GPG keyring.
This type is returned by Keyring::with_homedir and only provides
read operations (list_keys, list_signatures). Write operations
require a Keyring which targets the system pacman keyring.
§Example
use pacman_key::Keyring;
let reader = Keyring::with_homedir("/custom/gnupg");
let keys = reader.list_keys().await?;Implementations§
Auto Trait Implementations§
impl Freeze for ReadOnlyKeyring
impl RefUnwindSafe for ReadOnlyKeyring
impl Send for ReadOnlyKeyring
impl Sync for ReadOnlyKeyring
impl Unpin for ReadOnlyKeyring
impl UnwindSafe for ReadOnlyKeyring
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more