pub trait TlsConnectionExt: 'static {
Show 34 methods // Required methods fn emit_accept_certificate( &self, peer_cert: &impl IsA<TlsCertificate>, errors: TlsCertificateFlags ) -> bool; fn certificate(&self) -> Option<TlsCertificate>; fn ciphersuite_name(&self) -> Option<GString>; 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 protocol_version(&self) -> TlsProtocolVersion; 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_ciphersuite_name_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_protocol_version_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§

source

fn emit_accept_certificate( &self, peer_cert: &impl IsA<TlsCertificate>, errors: TlsCertificateFlags ) -> bool

source

fn certificate(&self) -> Option<TlsCertificate>

source

fn ciphersuite_name(&self) -> Option<GString>

Available on crate feature v2_70 only.
source

fn database(&self) -> Option<TlsDatabase>

source

fn interaction(&self) -> Option<TlsInteraction>

source

fn negotiated_protocol(&self) -> Option<GString>

Available on crate feature v2_60 only.
source

fn peer_certificate(&self) -> Option<TlsCertificate>

source

fn peer_certificate_errors(&self) -> TlsCertificateFlags

source

fn protocol_version(&self) -> TlsProtocolVersion

Available on crate feature v2_70 only.
source

fn rehandshake_mode(&self) -> TlsRehandshakeMode

👎Deprecated: Since 2.60
source

fn requires_close_notify(&self) -> bool

source

fn handshake( &self, cancellable: Option<&impl IsA<Cancellable>> ) -> Result<(), Error>

source

fn handshake_async<P: FnOnce(Result<(), Error>) + 'static>( &self, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P )

source

fn handshake_future( &self, io_priority: Priority ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

source

fn set_advertised_protocols(&self, protocols: &[&str])

Available on crate feature v2_60 only.
source

fn set_certificate(&self, certificate: &impl IsA<TlsCertificate>)

source

fn set_database(&self, database: Option<&impl IsA<TlsDatabase>>)

source

fn set_interaction(&self, interaction: Option<&impl IsA<TlsInteraction>>)

source

fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode)

👎Deprecated: Since 2.60
source

fn set_require_close_notify(&self, require_close_notify: bool)

source

fn advertised_protocols(&self) -> Vec<GString>

Available on crate feature v2_60 only.
source

fn base_io_stream(&self) -> Option<IOStream>

source

fn connect_accept_certificate<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool + 'static>( &self, f: F ) -> SignalHandlerId

source

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

Available on crate feature v2_60 only.
source

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

source

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

Available on crate feature v2_70 only.
source

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

source

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

source

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

Available on crate feature v2_60 only.
source

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

source

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

source

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

Available on crate feature v2_70 only.
source

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

👎Deprecated: Since 2.60
source

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

Implementors§