Trait TlsConnectionExt

Source
pub trait TlsConnectionExt: 'static {
Show 24 methods // Required methods fn emit_accept_certificate<P: IsA<TlsCertificate>>( &self, peer_cert: &P, errors: TlsCertificateFlags, ) -> bool; fn get_certificate(&self) -> Option<TlsCertificate>; fn get_database(&self) -> Option<TlsDatabase>; fn get_interaction(&self) -> Option<TlsInteraction>; fn get_peer_certificate(&self) -> Option<TlsCertificate>; fn get_peer_certificate_errors(&self) -> TlsCertificateFlags; fn get_rehandshake_mode(&self) -> TlsRehandshakeMode; fn get_require_close_notify(&self) -> bool; fn handshake<P: IsA<Cancellable>>( &self, cancellable: Option<&P>, ) -> Result<(), Error>; fn handshake_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>( &self, io_priority: Priority, cancellable: Option<&P>, callback: Q, ); fn set_certificate<P: IsA<TlsCertificate>>(&self, certificate: &P); fn set_database<P: IsA<TlsDatabase>>(&self, database: &P); fn set_interaction<P: IsA<TlsInteraction>>(&self, interaction: Option<&P>); fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode); fn set_require_close_notify(&self, require_close_notify: bool); fn get_property_base_io_stream(&self) -> Option<IOStream>; fn connect_accept_certificate<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_certificate_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_database_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_interaction_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_peer_certificate_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_peer_certificate_errors_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_rehandshake_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_require_close_notify_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn get_peer_certificate_errors(&self) -> TlsCertificateFlags

Source

fn get_rehandshake_mode(&self) -> TlsRehandshakeMode

Source

fn get_require_close_notify(&self) -> bool

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode)

Source

fn set_require_close_notify(&self, require_close_notify: bool)

Source

fn get_property_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_property_certificate_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_property_require_close_notify_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§