pub enum TrustMode {
Pinned,
Ca,
PinnedOrCa,
}Expand description
How a client certificate is trusted.
Variants§
Pinned
Its fingerprint is a record of the table: a pinned peer.
Ca
A CA of the configured ca_file signed it, and its names match the globs.
PinnedOrCa
Pinned, or else signed by the CA.
Trait Implementations§
impl Copy for TrustMode
impl Eq for TrustMode
Source§impl Leaf for TrustMode
impl Leaf for TrustMode
Source§fn labels() -> &'static [(&'static str, &'static str)]
fn labels() -> &'static [(&'static str, &'static str)]
A label for each fixed text the type names, as
(text, label): what a form shows
beside the text. Only the texts that have a label are listed.§fn same(a: &Self, b: &Self) -> bool
fn same(a: &Self, b: &Self) -> bool
Whether two values are the same setting. Settings are compared after both texts are
parsed into this type, never as the raw input: by default the canonical texts of the two
values are equal, which the round-trip contract makes the type’s own equality. A type
whose equal values can write different texts (
-0.0 and 0.0) overrides it.impl StructuralPartialEq for TrustMode
Auto Trait Implementations§
impl Freeze for TrustMode
impl RefUnwindSafe for TrustMode
impl Send for TrustMode
impl Sync for TrustMode
impl Unpin for TrustMode
impl UnsafeUnpin for TrustMode
impl UnwindSafe for TrustMode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Describe for Twhere
T: Leaf,
impl<T> Describe for Twhere
T: Leaf,
§const LEAF: bool = true
const LEAF: bool = true
The type is one text: a [
Leaf], or an untagged enum whose arms all are. An untagged
enum counts the arms that are not, and holds at most one.§fn description() -> Description
fn description() -> Description
What this type is.
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.