Struct sequoia_net::KeyServer
source · pub struct KeyServer { /* private fields */ }
Expand description
For accessing keyservers using HKP.
Implementations§
source§impl KeyServer
impl KeyServer
sourcepub fn with_client(url: &str, client: Client) -> Result<Self>
pub fn with_client(url: &str, client: Client) -> Result<Self>
Returns a handle for the given URL with a custom Client
.
sourcepub async fn get<H: Into<KeyHandle>>(
&self,
handle: H
) -> Result<Vec<Result<Cert>>>
pub async fn get<H: Into<KeyHandle>>( &self, handle: H ) -> Result<Vec<Result<Cert>>>
Retrieves the certificate with the given handle.
Warning
Returned certificates must be mistrusted, and be carefully interpreted under a policy and trust model.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for KeyServer
impl Send for KeyServer
impl Sync for KeyServer
impl Unpin for KeyServer
impl !UnwindSafe for KeyServer
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