Trait gio::prelude::TlsInteractionExt
source · [−]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>>;
}
Required Methods
sourcefn ask_password(
fn ask_password(
&self,
password: &impl IsA<TlsPassword>,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsInteractionResult, Error>
sourcefn ask_password_async<P: FnOnce(Result<TlsInteractionResult, Error>) + 'static>(
fn ask_password_async<P: FnOnce(Result<TlsInteractionResult, Error>) + 'static>(
&self,
password: &impl IsA<TlsPassword>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn ask_password_future(
fn ask_password_future(
&self,
password: &impl IsA<TlsPassword> + Clone + 'static
) -> Pin<Box_<dyn Future<Output = Result<TlsInteractionResult, Error>> + 'static>>
sourcefn invoke_ask_password(
fn invoke_ask_password(
&self,
password: &impl IsA<TlsPassword>,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsInteractionResult, Error>
sourcefn invoke_request_certificate(
fn invoke_request_certificate(
&self,
connection: &impl IsA<TlsConnection>,
flags: TlsCertificateRequestFlags,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsInteractionResult, Error>
sourcefn request_certificate(
fn request_certificate(
&self,
connection: &impl IsA<TlsConnection>,
flags: TlsCertificateRequestFlags,
cancellable: Option<&impl IsA<Cancellable>>
) -> Result<TlsInteractionResult, Error>
sourcefn request_certificate_async<P: FnOnce(Result<TlsInteractionResult, Error>) + 'static>(
fn request_certificate_async<P: FnOnce(Result<TlsInteractionResult, Error>) + 'static>(
&self,
connection: &impl IsA<TlsConnection>,
flags: TlsCertificateRequestFlags,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
)
sourcefn request_certificate_future(