[][src]Trait gio::TlsConnectionExt

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

Required methods

fn emit_accept_certificate<P: IsA<TlsCertificate>>(
    &self,
    peer_cert: &P,
    errors: TlsCertificateFlags
) -> bool

fn get_certificate(&self) -> Option<TlsCertificate>

fn get_database(&self) -> Option<TlsDatabase>

fn get_interaction(&self) -> Option<TlsInteraction>

fn get_peer_certificate(&self) -> Option<TlsCertificate>

fn get_peer_certificate_errors(&self) -> TlsCertificateFlags

fn get_rehandshake_mode(&self) -> TlsRehandshakeMode

fn get_require_close_notify(&self) -> bool

fn handshake<P: IsA<Cancellable>>(
    &self,
    cancellable: Option<&P>
) -> Result<(), Error>

fn handshake_async<P: IsA<Cancellable>, Q: FnOnce(Result<(), Error>) + Send + 'static>(
    &self,
    io_priority: Priority,
    cancellable: Option<&P>,
    callback: Q
)

fn handshake_async_future(
    &self,
    io_priority: Priority
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>>

fn set_certificate<P: IsA<TlsCertificate>>(&self, certificate: &P)

fn set_database<P: IsA<TlsDatabase>>(&self, database: &P)

fn set_interaction<P: IsA<TlsInteraction>>(&self, interaction: Option<&P>)

fn set_rehandshake_mode(&self, mode: TlsRehandshakeMode)

fn set_require_close_notify(&self, require_close_notify: bool)

fn get_property_base_io_stream(&self) -> Option<IOStream>

fn connect_accept_certificate<F: Fn(&Self, &TlsCertificate, TlsCertificateFlags) -> bool + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_certificate_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_database_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_interaction_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_peer_certificate_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_peer_certificate_errors_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_rehandshake_mode_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_require_close_notify_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<TlsConnection>> TlsConnectionExt for O[src]

Loading content...