pub struct Keys { /* private fields */ }Expand description
The keys a verifier has resolved: per host, a key document or the failure resolving it.
A host that was never resolved behaves as E_KEY_UNAVAILABLE (SPEC 11).
Implementations§
Source§impl Keys
impl Keys
Sourcepub fn insert_result(&mut self, host: &str, result: Result<KeyDoc>)
pub fn insert_result(&mut self, host: &str, result: Result<KeyDoc>)
Records the outcome of resolving a host: a document, or the error (E_KEY_DOC,
E_KEY_UNAVAILABLE) that resolving it gave.
Sourcepub fn insert_response(&mut self, host: &str, status: u16, body: Option<&[u8]>)
pub fn insert_response(&mut self, host: &str, status: u16, body: Option<&[u8]>)
Records the response to a key document request (see keys_from_response).
Records that a host’s keys could not be retrieved (network, DNS, TLS, timeout).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keys
impl RefUnwindSafe for Keys
impl Send for Keys
impl Sync for Keys
impl Unpin for Keys
impl UnsafeUnpin for Keys
impl UnwindSafe for Keys
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