#[non_exhaustive]pub enum TlsProtocolVersion {
Unknown,
Ssl30,
Tls10,
Tls11,
Tls12,
Tls13,
Dtls10,
Dtls12,
}
v2_70
only.Expand description
The TLS or DTLS protocol version used by a #GTlsConnection or
#GDtlsConnection. The integer values of these versions are sequential
to ensure newer known protocol versions compare greater than older
known versions. Any known DTLS protocol version will compare greater
than any SSL or TLS protocol version. The protocol version may be
Unknown
if the TLS backend supports a newer
protocol version that GLib does not yet know about. This means that
it’s possible for an unknown DTLS protocol version to compare less
than the TLS protocol versions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
No protocol version or unknown protocol version
Ssl30
SSL 3.0, which is insecure and should not be used
Tls10
TLS 1.0, which is insecure and should not be used
Tls11
TLS 1.1, which is insecure and should not be used
Tls12
TLS 1.2, defined by RFC 5246
Tls13
TLS 1.3, defined by RFC 8446
Dtls10
DTLS 1.0, which is insecure and should not be used
Dtls12
DTLS 1.2, defined by RFC 6347
Trait Implementations§
Source§impl Clone for TlsProtocolVersion
impl Clone for TlsProtocolVersion
Source§fn clone(&self) -> TlsProtocolVersion
fn clone(&self) -> TlsProtocolVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TlsProtocolVersion
impl Debug for TlsProtocolVersion
Source§impl From<TlsProtocolVersion> for Value
impl From<TlsProtocolVersion> for Value
Source§fn from(v: TlsProtocolVersion) -> Self
fn from(v: TlsProtocolVersion) -> Self
Source§impl<'a> FromValue<'a> for TlsProtocolVersion
impl<'a> FromValue<'a> for TlsProtocolVersion
Source§type Checker = GenericValueTypeChecker<TlsProtocolVersion>
type Checker = GenericValueTypeChecker<TlsProtocolVersion>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moreSource§impl HasParamSpec for TlsProtocolVersion
impl HasParamSpec for TlsProtocolVersion
type ParamSpec = ParamSpecEnum
Source§type SetValue = TlsProtocolVersion
type SetValue = TlsProtocolVersion
type BuilderFn = fn(_: &str, _: TlsProtocolVersion) -> ParamSpecEnumBuilder<'_, TlsProtocolVersion>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for TlsProtocolVersion
impl Hash for TlsProtocolVersion
Source§impl Ord for TlsProtocolVersion
impl Ord for TlsProtocolVersion
Source§fn cmp(&self, other: &TlsProtocolVersion) -> Ordering
fn cmp(&self, other: &TlsProtocolVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TlsProtocolVersion
impl PartialEq for TlsProtocolVersion
Source§impl PartialOrd for TlsProtocolVersion
impl PartialOrd for TlsProtocolVersion
Source§impl StaticType for TlsProtocolVersion
impl StaticType for TlsProtocolVersion
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.Source§impl ToValue for TlsProtocolVersion
impl ToValue for TlsProtocolVersion
Source§impl ValueType for TlsProtocolVersion
impl ValueType for TlsProtocolVersion
Source§type Type = TlsProtocolVersion
type Type = TlsProtocolVersion
Type
from. Read moreimpl Copy for TlsProtocolVersion
impl Eq for TlsProtocolVersion
impl StructuralPartialEq for TlsProtocolVersion
Auto Trait Implementations§
impl Freeze for TlsProtocolVersion
impl RefUnwindSafe for TlsProtocolVersion
impl Send for TlsProtocolVersion
impl Sync for TlsProtocolVersion
impl Unpin for TlsProtocolVersion
impl UnwindSafe for TlsProtocolVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.