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ยง
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>
Available on crate feature
v2_70 only.fn database(&self) -> Option<TlsDatabase>
fn interaction(&self) -> Option<TlsInteraction>
fn negotiated_protocol(&self) -> Option<GString>
Available on crate feature
v2_60 only.fn peer_certificate(&self) -> Option<TlsCertificate>
fn peer_certificate_errors(&self) -> TlsCertificateFlags
fn protocol_version(&self) -> TlsProtocolVersion
Available on crate feature
v2_70 only.fn rehandshake_mode(&self) -> TlsRehandshakeMode
๐Deprecated: Since 2.64
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])
Available on crate feature
v2_60 only.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)
๐Deprecated: Since 2.60
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>
Available on crate feature
v2_60 only.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
Available on crate feature
v2_60 only.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
Available on crate feature
v2_70 only.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
Available on crate feature
v2_60 only.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
Available on crate feature
v2_70 only.fn connect_rehandshake_mode_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 2.60
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.