Trait gio::TlsConnectionExt [−][src]
pub trait TlsConnectionExt: Sized { fn emit_accept_certificate(
&self,
peer_cert: &TlsCertificate,
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 get_use_system_certdb(&self) -> bool; fn handshake<'a, P: Into<Option<&'a Cancellable>>>(
&self,
cancellable: P
) -> Result<(), Error>; fn handshake_async<'a, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: P,
callback: Q
); fn set_certificate(&self, certificate: &TlsCertificate); fn set_database<P: IsA<TlsDatabase>>(&self, database: &P); fn set_interaction<'a, P: Into<Option<&'a TlsInteraction>>>(
&self,
interaction: P
); fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode); fn set_require_close_notify(&self, require_close_notify: bool); fn set_use_system_certdb(&self, use_system_certdb: 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_base_io_stream_notify<F: Fn(&Self) + '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; fn connect_property_use_system_certdb_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required Methods
fn emit_accept_certificate(
&self,
peer_cert: &TlsCertificate,
errors: TlsCertificateFlags
) -> bool
&self,
peer_cert: &TlsCertificate,
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 get_use_system_certdb(&self) -> bool
Deprecated
fn handshake<'a, P: Into<Option<&'a Cancellable>>>(
&self,
cancellable: P
) -> Result<(), Error>
&self,
cancellable: P
) -> Result<(), Error>
fn handshake_async<'a, P: Into<Option<&'a Cancellable>>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
&self,
io_priority: Priority,
cancellable: P,
callback: Q
)
&self,
io_priority: Priority,
cancellable: P,
callback: Q
)
fn set_certificate(&self, certificate: &TlsCertificate)
fn set_database<P: IsA<TlsDatabase>>(&self, database: &P)
fn set_interaction<'a, P: Into<Option<&'a TlsInteraction>>>(
&self,
interaction: P
)
&self,
interaction: P
)
fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode)
fn set_require_close_notify(&self, require_close_notify: bool)
fn set_use_system_certdb(&self, use_system_certdb: bool)
Deprecated
fn get_property_base_io_stream(&self) -> Option<IOStream>
fn connect_accept_certificate<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_base_io_stream_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_certificate_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_database_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_interaction_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_peer_certificate_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_peer_certificate_errors_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_rehandshake_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_require_close_notify_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_use_system_certdb_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Deprecated
Implementors
impl<O: IsA<TlsConnection> + IsA<Object> + Clone + 'static> TlsConnectionExt for O