gio::prelude

Trait DtlsServerConnectionExt

Source
pub trait DtlsServerConnectionExt: IsA<DtlsServerConnection> + 'static {
    // Provided methods
    fn authentication_mode(&self) -> TlsAuthenticationMode { ... }
    fn set_authentication_mode(
        &self,
        authentication_mode: TlsAuthenticationMode,
    ) { ... }
    fn connect_authentication_mode_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all DtlsServerConnection methods.

§Implementors

DtlsServerConnection

Provided Methods§

Source

fn authentication_mode(&self) -> TlsAuthenticationMode

The #GTlsAuthenticationMode for the server. This can be changed before calling g_dtls_connection_handshake() if you want to rehandshake with a different mode from the initial handshake.

Source

fn set_authentication_mode(&self, authentication_mode: TlsAuthenticationMode)

The #GTlsAuthenticationMode for the server. This can be changed before calling g_dtls_connection_handshake() if you want to rehandshake with a different mode from the initial handshake.

Source

fn connect_authentication_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

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.

Implementors§