Trait sourceview5::prelude::TlsInteractionExt
source · pub trait TlsInteractionExt: IsA<TlsInteraction> + Sealed + 'static {
// Provided methods
fn ask_password(
&self,
password: &impl IsA<TlsPassword>,
cancellable: Option<&impl IsA<Cancellable>>,
) -> Result<TlsInteractionResult, Error> { ... }
fn ask_password_async<P>(
&self,
password: &impl IsA<TlsPassword>,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
where P: FnOnce(Result<TlsInteractionResult, Error>) + 'static { ... }
fn ask_password_future(
&self,
password: &(impl IsA<TlsPassword> + Clone + 'static),
) -> Pin<Box<dyn Future<Output = Result<TlsInteractionResult, Error>>>> { ... }
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>(
&self,
connection: &impl IsA<TlsConnection>,
flags: TlsCertificateRequestFlags,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P,
)
where P: FnOnce(Result<TlsInteractionResult, Error>) + 'static { ... }
fn request_certificate_future(
&self,
connection: &(impl IsA<TlsConnection> + Clone + 'static),
flags: TlsCertificateRequestFlags,
) -> Pin<Box<dyn Future<Output = Result<TlsInteractionResult, Error>>>> { ... }
}
Provided Methods§
fn ask_password( &self, password: &impl IsA<TlsPassword>, cancellable: Option<&impl IsA<Cancellable>>, ) -> Result<TlsInteractionResult, Error>
fn ask_password_async<P>( &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>>>>
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>( &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>>>>
Object Safety§
This trait is not object safe.