DtlsConnectionExt

Trait DtlsConnectionExt 

Source
pub trait DtlsConnectionExt: IsA<DtlsConnection> + 'static {
Show 40 methods // Provided methods fn close( &self, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn close_async<P: FnOnce(Result<(), Error>) + 'static>( &self, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn close_future( &self, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... } 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 shutdown( &self, shutdown_read: bool, shutdown_write: bool, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error> { ... } fn shutdown_async<P: FnOnce(Result<(), Error>) + 'static>( &self, shutdown_read: bool, shutdown_write: bool, io_priority: Priority, cancellable: Option<&impl IsA<Cancellable>>, callback: P, ) { ... } fn shutdown_future( &self, shutdown_read: bool, shutdown_write: bool, io_priority: Priority, ) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... } fn advertised_protocols(&self) -> Vec<GString> { ... } fn base_socket(&self) -> Option<DatagramBased> { ... } 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 { ... }
}

Provided Methodsยง

Source

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

Source

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

Source

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

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.64
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 shutdown( &self, shutdown_read: bool, shutdown_write: bool, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<(), Error>

Source

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

Source

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

Source

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

Available on crate feature v2_60 only.
Source

fn base_socket(&self) -> Option<DatagramBased>

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

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ยง