pub struct Trust { /* private fields */ }Expand description
Which servers a client trusts beyond the platform’s own evaluation.
Implementations§
Source§impl Trust
impl Trust
Sourcepub fn pin(self, host: impl Into<String>, pin: &str) -> Trust
pub fn pin(self, host: impl Into<String>, pin: &str) -> Trust
Require host’s certificate chain to hold a key whose SHA-256 is pin, written
sha256/<base64> as ServerTrust::pins prints it. *.example.com covers every
subdomain. Several pins for one host accept any of them, which is how a key rotation
ships. A malformed pin matches nothing, so its host fails closed.
Trait Implementations§
impl Eq for Trust
impl StructuralPartialEq for Trust
Auto Trait Implementations§
impl Forget for Trust
impl Freeze for Trust
impl Move for Trust
impl RefUnwindSafe for Trust
impl Send for Trust
impl Sync for Trust
impl Unpin for Trust
impl UnsafeUnpin for Trust
impl UnwindSafe for Trust
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