gio::prelude

Trait TlsPasswordExt

Source
pub trait TlsPasswordExt: IsA<TlsPassword> + 'static {
    // Provided methods
    fn description(&self) -> GString { ... }
    fn flags(&self) -> TlsPasswordFlags { ... }
    fn warning(&self) -> GString { ... }
    fn set_description(&self, description: &str) { ... }
    fn set_flags(&self, flags: TlsPasswordFlags) { ... }
    fn set_warning(&self, warning: &str) { ... }
    fn connect_description_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_flags_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_warning_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all TlsPassword methods.

§Implementors

TlsPassword

Provided Methods§

Source

fn description(&self) -> GString

Get a description string about what the password will be used for.

§Returns

The description of the password.

Source

fn flags(&self) -> TlsPasswordFlags

Get flags about the password.

§Returns

The flags about the password.

Source

fn warning(&self) -> GString

Get a user readable translated warning. Usually this warning is a representation of the password flags returned from g_tls_password_get_flags().

§Returns

The warning.

Source

fn set_description(&self, description: &str)

Set a description string about what the password will be used for.

§description

The description of the password

Source

fn set_flags(&self, flags: TlsPasswordFlags)

Set flags about the password.

§flags

The flags about the password

Source

fn set_warning(&self, warning: &str)

Set a user readable translated warning. Usually this warning is a representation of the password flags returned from g_tls_password_get_flags().

§warning

The user readable warning

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§