[−][src]Struct sequoia_net::KeyServer
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
impl !RefUnwindSafe for KeyServer
[src]
impl !Send for KeyServer
[src]
impl !Sync for KeyServer
[src]
impl Unpin for KeyServer
[src]
impl !UnwindSafe for KeyServer
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,