Type Alias GDtlsConnectionInterface

Source
pub type GDtlsConnectionInterface = _GDtlsConnectionInterface;
Expand description

GDtlsConnectionInterface: @g_iface: The parent interface. @accept_certificate: Check whether to accept a certificate. @handshake: Perform a handshake operation. @handshake_async: Start an asynchronous handshake operation. @handshake_finish: Finish an asynchronous handshake operation. @shutdown: Shut down one or both directions of the connection. @shutdown_async: Start an asynchronous shutdown operation. @shutdown_finish: Finish an asynchronous shutdown operation. @set_advertised_protocols: Set APLN protocol list (Since: 2.60) @get_negotiated_protocol: Get ALPN-negotiated protocol (Since: 2.60) @get_binding_data: Retrieve TLS channel binding data (Since: 2.66)

Virtual method table for a #GDtlsConnection implementation.

Since: 2.48

Aliased Type§

struct GDtlsConnectionInterface {
    pub g_iface: _GTypeInterface,
    pub accept_certificate: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *mut _GTlsCertificate, u32) -> i32>,
    pub handshake: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *mut _GCancellable, *mut *mut _GError) -> i32>,
    pub handshake_async: Option<unsafe extern "C" fn(*mut _GDtlsConnection, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
    pub handshake_finish: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
    pub shutdown: Option<unsafe extern "C" fn(*mut _GDtlsConnection, i32, i32, *mut _GCancellable, *mut *mut _GError) -> i32>,
    pub shutdown_async: Option<unsafe extern "C" fn(*mut _GDtlsConnection, i32, i32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>,
    pub shutdown_finish: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *mut _GAsyncResult, *mut *mut _GError) -> i32>,
    pub set_advertised_protocols: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *const *const i8)>,
    pub get_negotiated_protocol: Option<unsafe extern "C" fn(*mut _GDtlsConnection) -> *const i8>,
    pub get_binding_data: Option<unsafe extern "C" fn(*mut _GDtlsConnection, u32, *mut _GByteArray, *mut *mut _GError) -> i32>,
}

Fields§

§g_iface: _GTypeInterface§accept_certificate: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *mut _GTlsCertificate, u32) -> i32>§handshake: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *mut _GCancellable, *mut *mut _GError) -> i32>§handshake_async: Option<unsafe extern "C" fn(*mut _GDtlsConnection, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§handshake_finish: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *mut _GAsyncResult, *mut *mut _GError) -> i32>§shutdown: Option<unsafe extern "C" fn(*mut _GDtlsConnection, i32, i32, *mut _GCancellable, *mut *mut _GError) -> i32>§shutdown_async: Option<unsafe extern "C" fn(*mut _GDtlsConnection, i32, i32, i32, *mut _GCancellable, Option<unsafe extern "C" fn(*mut _GObject, *mut _GAsyncResult, *mut c_void)>, *mut c_void)>§shutdown_finish: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *mut _GAsyncResult, *mut *mut _GError) -> i32>§set_advertised_protocols: Option<unsafe extern "C" fn(*mut _GDtlsConnection, *const *const i8)>§get_negotiated_protocol: Option<unsafe extern "C" fn(*mut _GDtlsConnection) -> *const i8>§get_binding_data: Option<unsafe extern "C" fn(*mut _GDtlsConnection, u32, *mut _GByteArray, *mut *mut _GError) -> i32>