[][src]Trait gio::TlsInteractionExt

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

Required methods

fn ask_password<P: IsA<TlsPassword>, Q: IsA<Cancellable>>(
    &self,
    password: &P,
    cancellable: Option<&Q>
) -> Result<TlsInteractionResult, Error>

fn ask_password_async<P: IsA<TlsPassword>, Q: IsA<Cancellable>, R: FnOnce(Result<TlsInteractionResult, Error>) + Send + 'static>(
    &self,
    password: &P,
    cancellable: Option<&Q>,
    callback: R
)

fn ask_password_async_future<P: IsA<TlsPassword> + Clone + 'static>(
    &self,
    password: &P
) -> Pin<Box_<dyn Future<Output = Result<TlsInteractionResult, Error>> + 'static>>

fn invoke_ask_password<P: IsA<TlsPassword>, Q: IsA<Cancellable>>(
    &self,
    password: &P,
    cancellable: Option<&Q>
) -> Result<TlsInteractionResult, Error>

fn invoke_request_certificate<P: IsA<TlsConnection>, Q: IsA<Cancellable>>(
    &self,
    connection: &P,
    flags: TlsCertificateRequestFlags,
    cancellable: Option<&Q>
) -> Result<TlsInteractionResult, Error>

fn request_certificate<P: IsA<TlsConnection>, Q: IsA<Cancellable>>(
    &self,
    connection: &P,
    flags: TlsCertificateRequestFlags,
    cancellable: Option<&Q>
) -> Result<TlsInteractionResult, Error>

fn request_certificate_async<P: IsA<TlsConnection>, Q: IsA<Cancellable>, R: FnOnce(Result<TlsInteractionResult, Error>) + Send + 'static>(
    &self,
    connection: &P,
    flags: TlsCertificateRequestFlags,
    cancellable: Option<&Q>,
    callback: R
)

fn request_certificate_async_future<P: IsA<TlsConnection> + Clone + 'static>(
    &self,
    connection: &P,
    flags: TlsCertificateRequestFlags
) -> Pin<Box_<dyn Future<Output = Result<TlsInteractionResult, Error>> + 'static>>

Loading content...

Implementors

impl<O: IsA<TlsInteraction>> TlsInteractionExt for O[src]

Loading content...