Trait gio::TlsConnectionExt
source · [−]pub trait TlsConnectionExt: 'static {
Show 24 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
sourcefn emit_accept_certificate<P: IsA<TlsCertificate>>(
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
sourcefn handshake_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
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>
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_property_certificate_notify<F: Fn(&Self) + 'static>(
fn connect_property_certificate_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_database_notify<F: Fn(&Self) + 'static>(
fn connect_property_database_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_interaction_notify<F: Fn(&Self) + 'static>(
fn connect_property_interaction_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_peer_certificate_notify<F: Fn(&Self) + 'static>(
fn connect_property_peer_certificate_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_peer_certificate_errors_notify<F: Fn(&Self) + 'static>(
fn connect_property_peer_certificate_errors_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_rehandshake_mode_notify<F: Fn(&Self) + 'static>(
fn connect_property_rehandshake_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourcefn connect_property_require_close_notify_notify<F: Fn(&Self) + 'static>(