pub trait TlsConnectionExt: 'static {
Show 30 methods fn emit_accept_certificate(
        &self,
        peer_cert: &impl IsA<TlsCertificate>,
        errors: TlsCertificateFlags
    ) -> bool; fn certificate(&self) -> Option<TlsCertificate>; fn database(&self) -> Option<TlsDatabase>; fn interaction(&self) -> Option<TlsInteraction>; fn negotiated_protocol(&self) -> Option<GString>; fn peer_certificate(&self) -> Option<TlsCertificate>; fn peer_certificate_errors(&self) -> TlsCertificateFlags; fn rehandshake_mode(&self) -> TlsRehandshakeMode; fn requires_close_notify(&self) -> bool; fn handshake(
        &self,
        cancellable: Option<&impl IsA<Cancellable>>
    ) -> Result<(), Error>; fn handshake_async<P: FnOnce(Result<(), Error>) + 'static>(
        &self,
        io_priority: Priority,
        cancellable: Option<&impl IsA<Cancellable>>,
        callback: P
    ); fn handshake_future(
        &self,
        io_priority: Priority
    ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>; fn set_advertised_protocols(&self, protocols: &[&str]); fn set_certificate(&self, certificate: &impl IsA<TlsCertificate>); fn set_database(&self, database: Option<&impl IsA<TlsDatabase>>); fn set_interaction(&self, interaction: Option<&impl IsA<TlsInteraction>>); fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode); fn set_require_close_notify(&self, require_close_notify: bool); fn advertised_protocols(&self) -> Vec<GString>; fn base_io_stream(&self) -> Option<IOStream>; fn connect_accept_certificate<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_advertised_protocols_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_certificate_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_database_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_interaction_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_negotiated_protocol_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_peer_certificate_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_peer_certificate_errors_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_rehandshake_mode_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; fn connect_require_close_notify_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
}

Required methods

👎 Deprecated:

Since 2.60

👎 Deprecated:

Since 2.60

👎 Deprecated:

Since 2.60

Implementors