pub struct Certificates { /* private fields */ }Expand description
A live handle to the certificates a crate::Server is serving.
Cheap to clone, and every read reflects the latest hot reload of the files on
disk, so a caller can build one at startup and hold it for the process
lifetime. Obtained from crate::Server::certificates.
Implementations§
Source§impl Certificates
impl Certificates
Sourcepub fn fingerprints(&self) -> Vec<String>
pub fn fingerprints(&self) -> Vec<String>
The SHA-256 fingerprints of the certificates being served right now, hex encoded, one per certificate and in configuration order.
Empty when the server has no TLS-bearing backend. Re-read this per use rather than caching it: a cert rotation on disk changes the values.
Trait Implementations§
Source§impl Clone for Certificates
impl Clone for Certificates
Source§fn clone(&self) -> Certificates
fn clone(&self) -> Certificates
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Certificates
impl RefUnwindSafe for Certificates
impl Send for Certificates
impl Sync for Certificates
impl Unpin for Certificates
impl UnsafeUnpin for Certificates
impl UnwindSafe for Certificates
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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