pub struct KeyServer<'a> { /* private fields */ }Expand description
A keyserver backend.
Implementations§
Source§impl KeyServer<'_>
impl KeyServer<'_>
Sourcepub fn keys_openpgp_org() -> Result<Self>
pub fn keys_openpgp_org() -> Result<Self>
Returns a key server instance that uses keys.openpgp.org.
Sourcepub fn mailvelope() -> Result<Self>
pub fn mailvelope() -> Result<Self>
Returns a key server instance that uses mailvelope’s keyserver.
Sourcepub fn add_listener(&mut self, listener: Box<dyn StatusListener + Send + Sync>)
pub fn add_listener(&mut self, listener: Box<dyn StatusListener + Send + Sync>)
Sends status updates to the listener.
Trait Implementations§
Source§impl<'a> Store<'a> for KeyServer<'a>
impl<'a> Store<'a> for KeyServer<'a>
Source§fn lookup_by_cert(&self, kh: &KeyHandle) -> Result<Vec<Arc<LazyCert<'a>>>>
fn lookup_by_cert(&self, kh: &KeyHandle) -> Result<Vec<Arc<LazyCert<'a>>>>
Returns the certificates whose fingerprint matches the handle. Read more
Source§fn lookup_by_cert_or_subkey(
&self,
kh: &KeyHandle,
) -> Result<Vec<Arc<LazyCert<'a>>>>
fn lookup_by_cert_or_subkey( &self, kh: &KeyHandle, ) -> Result<Vec<Arc<LazyCert<'a>>>>
Returns certificates that have a key with the specified
handle, if any. Read more
Source§fn select_userid(
&self,
query: &UserIDQueryParams,
pattern: &str,
) -> Result<Vec<Arc<LazyCert<'a>>>>
fn select_userid( &self, query: &UserIDQueryParams, pattern: &str, ) -> Result<Vec<Arc<LazyCert<'a>>>>
Returns certificates that have a User ID matching the
specified pattern according to the query parameters. Read more
Source§fn fingerprints<'b>(&'b self) -> Box<dyn Iterator<Item = Fingerprint> + 'b>
fn fingerprints<'b>(&'b self) -> Box<dyn Iterator<Item = Fingerprint> + 'b>
Lists all of the certificates. Read more
Source§fn lookup_by_cert_fpr(
&self,
fingerprint: &Fingerprint,
) -> Result<Arc<LazyCert<'a>>>
fn lookup_by_cert_fpr( &self, fingerprint: &Fingerprint, ) -> Result<Arc<LazyCert<'a>>>
Returns the certificate with the specified fingerprint, if any. Read more
Source§fn lookup_by_userid(&self, userid: &UserID) -> Result<Vec<Arc<LazyCert<'a>>>>
fn lookup_by_userid(&self, userid: &UserID) -> Result<Vec<Arc<LazyCert<'a>>>>
Performs an exact match on the User ID. Read more
Source§fn grep_userid(&self, pattern: &str) -> Result<Vec<Arc<LazyCert<'a>>>>
fn grep_userid(&self, pattern: &str) -> Result<Vec<Arc<LazyCert<'a>>>>
Performs a case insenitive, substring match on the User ID. Read more
Source§fn lookup_by_email(&self, email: &str) -> Result<Vec<Arc<LazyCert<'a>>>>
fn lookup_by_email(&self, email: &str) -> Result<Vec<Arc<LazyCert<'a>>>>
Returns certificates that have a User ID with the specified
email address. Read more
Source§fn grep_email(&self, pattern: &str) -> Result<Vec<Arc<LazyCert<'a>>>>
fn grep_email(&self, pattern: &str) -> Result<Vec<Arc<LazyCert<'a>>>>
Performs a case insenitive, substring match on the normalized
email address. Read more
Source§fn lookup_by_email_domain(&self, domain: &str) -> Result<Vec<Arc<LazyCert<'a>>>>
fn lookup_by_email_domain(&self, domain: &str) -> Result<Vec<Arc<LazyCert<'a>>>>
Returns certificates that have User ID with an email address
from the specified domain. Read more
Source§fn certs<'b>(&'b self) -> Box<dyn Iterator<Item = Arc<LazyCert<'a>>> + 'b>where
'a: 'b,
fn certs<'b>(&'b self) -> Box<dyn Iterator<Item = Arc<LazyCert<'a>>> + 'b>where
'a: 'b,
Returns all of the certificates. Read more
Source§fn prefetch_all(&self)
fn prefetch_all(&self)
Prefills the cache. Read more
Source§fn prefetch_some(&self, certs: &[KeyHandle])
fn prefetch_some(&self, certs: &[KeyHandle])
Prefetches some certificates. Read more
Auto Trait Implementations§
impl<'a> !Freeze for KeyServer<'a>
impl<'a> RefUnwindSafe for KeyServer<'a>
impl<'a> Send for KeyServer<'a>
impl<'a> Sync for KeyServer<'a>
impl<'a> Unpin for KeyServer<'a>
impl<'a> UnsafeUnpin for KeyServer<'a>
impl<'a> UnwindSafe for KeyServer<'a>
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