Trait gio::prelude::TlsConnectionExt
source · [−]pub trait TlsConnectionExt: 'static {
Show 34 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
sourcefn emit_accept_certificate(
fn emit_accept_certificate(
&self,
peer_cert: &impl IsA<TlsCertificate>,
errors: TlsCertificateFlags
) -> bool
source
fn certificate(&self) -> Option<TlsCertificate>
sourcefn ciphersuite_name(&self) -> Option<GString>
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>
sourcefn negotiated_protocol(&self) -> Option<GString>
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
sourcefn protocol_version(&self) -> TlsProtocolVersion
fn protocol_version(&self) -> TlsProtocolVersion
Available on crate feature
v2_70
only.sourcefn rehandshake_mode(&self) -> TlsRehandshakeMode
fn rehandshake_mode(&self) -> TlsRehandshakeMode
👎Deprecated:
Since 2.60
source
fn requires_close_notify(&self) -> bool
sourcefn handshake_async<P: FnOnce(Result<(), Error>) + 'static>(
fn handshake_async<P: FnOnce(Result<(), Error>) + 'static>(
&self,
io_priority: Priority,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn handshake_future(
fn handshake_future(
&self,
io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>
sourcefn set_advertised_protocols(&self, protocols: &[&str])
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>>)
sourcefn set_rehandshake_mode(&self, mode: TlsRehandshakeMode)
fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode)
👎Deprecated:
Since 2.60
source
fn set_require_close_notify(&self, require_close_notify: bool)
sourcefn advertised_protocols(&self) -> Vec<GString>
fn advertised_protocols(&self) -> Vec<GString>
Available on crate feature
v2_60
only.source
fn base_io_stream(&self) -> Option<IOStream>
sourcefn connect_accept_certificate<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool + 'static>(
fn connect_accept_certificate<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_advertised_protocols_notify<F: Fn(&Self) + '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.sourcefn connect_certificate_notify<F: Fn(&Self) + 'static>(
fn connect_certificate_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_ciphersuite_name_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.sourcefn connect_database_notify<F: Fn(&Self) + 'static>(
fn connect_database_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_interaction_notify<F: Fn(&Self) + 'static>(
fn connect_interaction_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_negotiated_protocol_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.sourcefn connect_peer_certificate_notify<F: Fn(&Self) + 'static>(
fn connect_peer_certificate_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_peer_certificate_errors_notify<F: Fn(&Self) + 'static>(
fn connect_peer_certificate_errors_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_protocol_version_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.sourcefn connect_rehandshake_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_rehandshake_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
👎Deprecated:
Since 2.60
sourcefn connect_require_close_notify_notify<F: Fn(&Self) + 'static>(