Trait gio::prelude::TlsBackendExt [−][src]
pub trait TlsBackendExt: 'static {
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<P: IsA<TlsDatabase>>(&self, database: Option<&P>);
fn supports_dtls(&self) -> bool;
fn supports_tls(&self) -> bool;
}Expand description
Required methods
fn certificate_type(&self) -> Type
fn certificate_type(&self) -> TypeGets the GType of self’s TlsCertificate implementation.
Returns
the GType of self’s TlsCertificate
implementation.
fn client_connection_type(&self) -> Type
fn client_connection_type(&self) -> TypeGets the GType of self’s TlsClientConnection implementation.
Returns
the GType of self’s TlsClientConnection
implementation.
fn default_database(&self) -> TlsDatabase
fn default_database(&self) -> TlsDatabaseGets the default TlsDatabase used to verify TLS connections.
Returns
the default database, which should be unreffed when done.
fn dtls_client_connection_type(&self) -> Type
fn dtls_client_connection_type(&self) -> TypeGets 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.
fn dtls_server_connection_type(&self) -> Type
fn dtls_server_connection_type(&self) -> TypeGets 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.
fn file_database_type(&self) -> Type
fn file_database_type(&self) -> TypeGets the GType of self’s TlsFileDatabase implementation.
Returns
the GType of backend’s TlsFileDatabase implementation.
fn server_connection_type(&self) -> Type
fn server_connection_type(&self) -> TypeGets the GType of self’s TlsServerConnection implementation.
Returns
the GType of self’s TlsServerConnection
implementation.
fn set_default_database<P: IsA<TlsDatabase>>(&self, database: Option<&P>)
fn set_default_database<P: IsA<TlsDatabase>>(&self, database: Option<&P>)v2_60 only.Set the default TlsDatabase used to verify TLS connections
Any subsequent call to 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 set_default_database() had never been called.
database
the TlsDatabase
fn supports_dtls(&self) -> bool
fn supports_dtls(&self) -> boolChecks if DTLS is supported. DTLS support may not be available even if TLS support is available, and vice-versa.
Returns
whether DTLS is supported
fn supports_tls(&self) -> bool
fn supports_tls(&self) -> boolChecks if TLS is supported; if this returns false for the default
TlsBackend, it means no “real” TLS backend is available.
Returns
whether or not TLS is supported