[][src]Struct sequoia_net::KeyServer

pub struct KeyServer { /* fields omitted */ }

For accessing keyservers using HKP.

Implementations

impl KeyServer[src]

pub fn new(p: Policy, uri: &str) -> Result<Self>[src]

Returns a handle for the given URI.

pub fn with_cert(p: Policy, uri: &str, cert: Certificate) -> Result<Self>[src]

Returns a handle for the given URI.

cert is used to authenticate the server.

pub fn keys_openpgp_org(p: Policy) -> Result<Self>[src]

Returns a handle for keys.openpgp.org.

The server at hkps://keys.openpgp.org distributes updates for OpenPGP certificates. It is a good default choice.

pub async fn get<H: Into<KeyHandle>>(&mut self, handle: H) -> Result<Cert>[src]

Retrieves the certificate with the given handle.

pub async fn search<U: Into<UserID>>(&mut self, userid: U) -> Result<Vec<Cert>>[src]

Retrieves certificates containing the given UserID.

If the given UserID does not follow the de facto conventions for userids, or it does not contain a email address, an error is returned.

Any certificates returned by the server that do not contain the email address queried for are silently discarded.

Warning

Returned certificates must be mistrusted, and be carefully interpreted under a policy and trust model.

pub async fn send(&mut self, key: &Cert) -> Result<()>[src]

Sends the given key to the server.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,