pub trait TlsBackendExt: IsA<TlsBackend> + 'static {
// Provided methods
fn certificate_type(&self) -> Type { ... }
fn client_connection_type(&self) -> Type { ... }
fn default_database(&self) -> TlsDatabase { ... }
fn dtls_client_connection_type(&self) -> Type { ... }
fn dtls_server_connection_type(&self) -> Type { ... }
fn file_database_type(&self) -> Type { ... }
fn server_connection_type(&self) -> Type { ... }
fn set_default_database(&self, database: Option<&impl IsA<TlsDatabase>>) { ... }
fn supports_dtls(&self) -> bool { ... }
fn supports_tls(&self) -> bool { ... }
}
Expand description
Provided Methods§
Sourcefn certificate_type(&self) -> Type
fn certificate_type(&self) -> Type
Gets the #GType of @self’s #GTlsCertificate implementation.
§Returns
the #GType of @self’s #GTlsCertificate implementation.
Sourcefn client_connection_type(&self) -> Type
fn client_connection_type(&self) -> Type
Gets the #GType of @self’s #GTlsClientConnection implementation.
§Returns
the #GType of @self’s #GTlsClientConnection implementation.
Sourcefn default_database(&self) -> TlsDatabase
fn default_database(&self) -> TlsDatabase
Gets the default #GTlsDatabase used to verify TLS connections.
§Returns
the default database, which should be unreffed when done.
Sourcefn dtls_client_connection_type(&self) -> Type
fn dtls_client_connection_type(&self) -> Type
Gets the #GType of @self’s #GDtlsClientConnection implementation.
§Returns
the #GType of @self’s #GDtlsClientConnection
implementation, or G_TYPE_INVALID
if this backend doesn’t support DTLS.
Sourcefn dtls_server_connection_type(&self) -> Type
fn dtls_server_connection_type(&self) -> Type
Gets the #GType of @self’s #GDtlsServerConnection implementation.
§Returns
the #GType of @self’s #GDtlsServerConnection
implementation, or G_TYPE_INVALID
if this backend doesn’t support DTLS.
Sourcefn file_database_type(&self) -> Type
fn file_database_type(&self) -> Type
Gets the #GType of @self’s #GTlsFileDatabase implementation.
§Returns
the #GType of backend’s #GTlsFileDatabase implementation.
Sourcefn server_connection_type(&self) -> Type
fn server_connection_type(&self) -> Type
Gets the #GType of @self’s #GTlsServerConnection implementation.
§Returns
the #GType of @self’s #GTlsServerConnection implementation.
Sourcefn set_default_database(&self, database: Option<&impl IsA<TlsDatabase>>)
Available on crate feature v2_60
only.
fn set_default_database(&self, database: Option<&impl IsA<TlsDatabase>>)
v2_60
only.Set the default #GTlsDatabase used to verify TLS connections
Any subsequent call to g_tls_backend_get_default_database() will return the database set in this call. Existing databases and connections are not modified.
Setting a None
default database will reset to using the system default
database as if g_tls_backend_set_default_database() had never been called.
§database
the #GTlsDatabase
Sourcefn supports_dtls(&self) -> bool
fn supports_dtls(&self) -> bool
Checks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
§Returns
whether DTLS is supported
Sourcefn supports_tls(&self) -> bool
fn supports_tls(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.