Enum gio::TlsProtocolVersion
source · #[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
§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
§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§fn eq(&self, other: &TlsProtocolVersion) -> bool
fn eq(&self, other: &TlsProtocolVersion) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TlsProtocolVersion
impl PartialOrd for TlsProtocolVersion
source§fn partial_cmp(&self, other: &TlsProtocolVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &TlsProtocolVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
.