Enum edgedb_tokio::TlsSecurity
source · pub enum TlsSecurity {
Insecure,
NoHostVerification,
Strict,
Default,
}
Expand description
TLS Client Security Mode
Variants§
Insecure
Allow any certificate for TLS connection
NoHostVerification
Verify certificate against trusted chain but allow any host name
This is useful for localhost (you can’t make trusted chain certificate for localhost). And when certificate of specific server is stored in credentials file so it’s secure regardless of which host name was used to expose the server to the network.
Strict
Normal TLS certificate check (checks trusted chain and hostname)
Default
If there is a specific certificate in credentials, do not check
the host name, otherwise use Strict
mode
Trait Implementations§
source§impl Clone for TlsSecurity
impl Clone for TlsSecurity
source§fn clone(&self) -> TlsSecurity
fn clone(&self) -> TlsSecurity
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 TlsSecurity
impl Debug for TlsSecurity
source§impl<'de> Deserialize<'de> for TlsSecurity
impl<'de> Deserialize<'de> for TlsSecurity
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 Display for TlsSecurity
impl Display for TlsSecurity
source§impl FromStr for TlsSecurity
impl FromStr for TlsSecurity
source§impl PartialEq<TlsSecurity> for TlsSecurity
impl PartialEq<TlsSecurity> for TlsSecurity
source§fn eq(&self, other: &TlsSecurity) -> bool
fn eq(&self, other: &TlsSecurity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TlsSecurity
impl Serialize for TlsSecurity
impl Copy for TlsSecurity
impl StructuralPartialEq for TlsSecurity
Auto Trait Implementations§
impl RefUnwindSafe for TlsSecurity
impl Send for TlsSecurity
impl Sync for TlsSecurity
impl Unpin for TlsSecurity
impl UnwindSafe for TlsSecurity
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