Trait ux::prelude::TlsConnectionExt [−]
pub trait TlsConnectionExt: 'static {
Show methods
pub fn emit_accept_certificate<P>(
&self,
peer_cert: &P,
errors: TlsCertificateFlags
) -> bool
where
P: IsA<TlsCertificate>;
pub fn get_certificate(&self) -> Option<TlsCertificate>;
pub fn get_database(&self) -> Option<TlsDatabase>;
pub fn get_interaction(&self) -> Option<TlsInteraction>;
pub fn get_peer_certificate(&self) -> Option<TlsCertificate>;
pub fn get_peer_certificate_errors(&self) -> TlsCertificateFlags;
pub fn get_rehandshake_mode(&self) -> TlsRehandshakeMode;
pub fn get_require_close_notify(&self) -> bool;
pub fn handshake<P>(&self, cancellable: Option<&P>) -> Result<(), Error>
where
P: IsA<Cancellable>;
pub fn handshake_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
)
where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send;
pub fn handshake_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>;
pub fn set_certificate<P>(&self, certificate: &P)
where
P: IsA<TlsCertificate>;
pub fn set_database<P>(&self, database: &P)
where
P: IsA<TlsDatabase>;
pub fn set_interaction<P>(&self, interaction: Option<&P>)
where
P: IsA<TlsInteraction>;
pub fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode);
pub fn set_require_close_notify(&self, require_close_notify: bool);
pub fn get_property_base_io_stream(&self) -> Option<IOStream>;
pub fn connect_accept_certificate<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool;
pub fn connect_property_certificate_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
pub fn connect_property_database_notify<F>(&self, f: F) -> SignalHandlerId
where
F: 'static + Fn(&Self);
pub fn connect_property_interaction_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
pub fn connect_property_peer_certificate_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
pub fn connect_property_peer_certificate_errors_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
pub fn connect_property_rehandshake_mode_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
pub fn connect_property_require_close_notify_notify<F>(
&self,
f: F
) -> SignalHandlerId
where
F: 'static + Fn(&Self);
}Required methods
pub fn emit_accept_certificate<P>(
&self,
peer_cert: &P,
errors: TlsCertificateFlags
) -> bool where
P: IsA<TlsCertificate>,
&self,
peer_cert: &P,
errors: TlsCertificateFlags
) -> bool where
P: IsA<TlsCertificate>,
pub fn get_certificate(&self) -> Option<TlsCertificate>
pub fn get_database(&self) -> Option<TlsDatabase>
pub fn get_interaction(&self) -> Option<TlsInteraction>
pub fn get_peer_certificate(&self) -> Option<TlsCertificate>
pub fn get_peer_certificate_errors(&self) -> TlsCertificateFlags
pub fn get_rehandshake_mode(&self) -> TlsRehandshakeMode
pub fn get_require_close_notify(&self) -> bool
pub fn handshake<P>(&self, cancellable: Option<&P>) -> Result<(), Error> where
P: IsA<Cancellable>,
P: IsA<Cancellable>,
pub fn handshake_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
pub fn handshake_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
pub fn set_certificate<P>(&self, certificate: &P) where
P: IsA<TlsCertificate>,
P: IsA<TlsCertificate>,
pub fn set_database<P>(&self, database: &P) where
P: IsA<TlsDatabase>,
P: IsA<TlsDatabase>,
pub fn set_interaction<P>(&self, interaction: Option<&P>) where
P: IsA<TlsInteraction>,
P: IsA<TlsInteraction>,
pub fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode)
pub fn set_require_close_notify(&self, require_close_notify: bool)
pub fn get_property_base_io_stream(&self) -> Option<IOStream>
pub fn connect_accept_certificate<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool,
F: 'static + Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool,
pub fn connect_property_certificate_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
F: 'static + Fn(&Self),
pub fn connect_property_database_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
F: 'static + Fn(&Self),
pub fn connect_property_interaction_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&Self),
F: 'static + Fn(&Self),
pub fn connect_property_peer_certificate_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
pub fn connect_property_peer_certificate_errors_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
pub fn connect_property_rehandshake_mode_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
pub fn connect_property_require_close_notify_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&Self),
Implementors
impl<O> TlsConnectionExt for O where
O: IsA<TlsConnection>,
O: IsA<TlsConnection>,
pub fn emit_accept_certificate<P>(
&self,
peer_cert: &P,
errors: TlsCertificateFlags
) -> bool where
P: IsA<TlsCertificate>,
&self,
peer_cert: &P,
errors: TlsCertificateFlags
) -> bool where
P: IsA<TlsCertificate>,
pub fn get_certificate(&self) -> Option<TlsCertificate>
pub fn get_database(&self) -> Option<TlsDatabase>
pub fn get_interaction(&self) -> Option<TlsInteraction>
pub fn get_peer_certificate(&self) -> Option<TlsCertificate>
pub fn get_peer_certificate_errors(&self) -> TlsCertificateFlags
pub fn get_rehandshake_mode(&self) -> TlsRehandshakeMode
pub fn get_require_close_notify(&self) -> bool
pub fn handshake<P>(&self, cancellable: Option<&P>) -> Result<(), Error> where
P: IsA<Cancellable>,
P: IsA<Cancellable>,
pub fn handshake_async<P, Q>(
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
&self,
io_priority: Priority,
cancellable: Option<&P>,
callback: Q
) where
P: IsA<Cancellable>,
Q: 'static + FnOnce(Result<(), Error>) + Send,
pub fn handshake_async_future(
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
&self,
io_priority: Priority
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'static, Global>>
pub fn set_certificate<P>(&self, certificate: &P) where
P: IsA<TlsCertificate>,
P: IsA<TlsCertificate>,
pub fn set_database<P>(&self, database: &P) where
P: IsA<TlsDatabase>,
P: IsA<TlsDatabase>,
pub fn set_interaction<P>(&self, interaction: Option<&P>) where
P: IsA<TlsInteraction>,
P: IsA<TlsInteraction>,
pub fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode)
pub fn set_require_close_notify(&self, require_close_notify: bool)
pub fn get_property_base_io_stream(&self) -> Option<IOStream>
pub fn connect_accept_certificate<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O, &TlsCertificate, TlsCertificateFlags) -> bool,
F: 'static + Fn(&O, &TlsCertificate, TlsCertificateFlags) -> bool,
pub fn connect_property_certificate_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_database_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_interaction_notify<F>(&self, f: F) -> SignalHandlerId where
F: 'static + Fn(&O),
F: 'static + Fn(&O),
pub fn connect_property_peer_certificate_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_peer_certificate_errors_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_rehandshake_mode_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
pub fn connect_property_require_close_notify_notify<F>(
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),
&self,
f: F
) -> SignalHandlerId where
F: 'static + Fn(&O),