pub trait TlsInteractionExt: 'static {
fn ask_password(
&self,
password: &impl IsA<TlsPassword>,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsInteractionResult, Error>;
fn ask_password_async<P: FnOnce(Result<TlsInteractionResult, Error>) + 'static>(
&self,
password: &impl IsA<TlsPassword>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn ask_password_future(
&self,
password: &impl IsA<TlsPassword> + Clone + 'static
) -> Pin<Box_<dyn Future<Output = Result<TlsInteractionResult, Error>> + 'static>>;
fn invoke_ask_password(
&self,
password: &impl IsA<TlsPassword>,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsInteractionResult, Error>;
fn invoke_request_certificate(
&self,
connection: &impl IsA<TlsConnection>,
flags: TlsCertificateRequestFlags,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsInteractionResult, Error>;
fn request_certificate(
&self,
connection: &impl IsA<TlsConnection>,
flags: TlsCertificateRequestFlags,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsInteractionResult, Error>;
fn request_certificate_async<P: FnOnce(Result<TlsInteractionResult, Error>) + 'static>(
&self,
connection: &impl IsA<TlsConnection>,
flags: TlsCertificateRequestFlags,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
);
fn request_certificate_future(
&self,
connection: &impl IsA<TlsConnection> + Clone + 'static,
flags: TlsCertificateRequestFlags
) -> Pin<Box_<dyn Future<Output = Result<TlsInteractionResult, Error>> + 'static>>;
}