pub struct KeyCertPathPair {
pub key_path: PathBuf,
pub cert_path: PathBuf,
}Fields§
§key_path: PathBuf§cert_path: PathBufImplementations§
Source§impl KeyCertPathPair
impl KeyCertPathPair
pub fn load_certified_key(&self) -> Result<CertifiedKey>
Sourcepub fn parent_paths(&self) -> Vec<PathBuf>
pub fn parent_paths(&self) -> Vec<PathBuf>
Return a vector of directories that we should listen for filesystem events on.
If the key and certificate are in the same directory, this will be a one-element vector with just that directory. If the key and certificate are in different directories, this will be a two-element vector with both directories.
We listen to the parent directories rather than the files themselves because the files themselves may not exist when the server is started.
Trait Implementations§
Source§impl Clone for KeyCertPathPair
impl Clone for KeyCertPathPair
Source§fn clone(&self) -> KeyCertPathPair
fn clone(&self) -> KeyCertPathPair
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyCertPathPair
impl Debug for KeyCertPathPair
Source§impl<'de> Deserialize<'de> for KeyCertPathPair
impl<'de> Deserialize<'de> for KeyCertPathPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KeyCertPathPair
impl PartialEq for KeyCertPathPair
Source§impl Serialize for KeyCertPathPair
impl Serialize for KeyCertPathPair
impl Eq for KeyCertPathPair
impl StructuralPartialEq for KeyCertPathPair
Auto Trait Implementations§
impl Freeze for KeyCertPathPair
impl RefUnwindSafe for KeyCertPathPair
impl Send for KeyCertPathPair
impl Sync for KeyCertPathPair
impl Unpin for KeyCertPathPair
impl UnwindSafe for KeyCertPathPair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more