Trait AuthExt

Source
pub trait AuthExt:
    IsA<Auth>
    + Sealed
    + 'static {
Show 23 methods // Provided methods fn authenticate(&self, username: &str, password: &str) { ... } fn can_authenticate(&self) -> bool { ... } fn cancel(&self) { ... } fn authority(&self) -> Option<GString> { ... } fn authorization(&self, msg: &Message) -> Option<GString> { ... } fn info(&self) -> Option<GString> { ... } fn protection_space(&self, source_uri: &Uri) -> Vec<GString> { ... } fn realm(&self) -> Option<GString> { ... } fn scheme_name(&self) -> Option<GString> { ... } fn is_authenticated(&self) -> bool { ... } fn is_cancelled(&self) -> bool { ... } fn is_for_proxy(&self) -> bool { ... } fn is_ready(&self, msg: &Message) -> bool { ... } fn update(&self, msg: &Message, auth_header: &str) -> bool { ... } fn set_authority(&self, authority: Option<&str>) { ... } fn set_is_for_proxy(&self, is_for_proxy: bool) { ... } fn set_realm(&self, realm: Option<&str>) { ... } fn connect_authority_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_authenticated_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_cancelled_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_for_proxy_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_realm_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_scheme_name_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}

Provided Methods§

Source

fn authenticate(&self, username: &str, password: &str)

Source

fn can_authenticate(&self) -> bool

Source

fn cancel(&self)

Source

fn authority(&self) -> Option<GString>

Source

fn authorization(&self, msg: &Message) -> Option<GString>

Source

fn info(&self) -> Option<GString>

Source

fn protection_space(&self, source_uri: &Uri) -> Vec<GString>

Source

fn realm(&self) -> Option<GString>

Source

fn scheme_name(&self) -> Option<GString>

Source

fn is_authenticated(&self) -> bool

Source

fn is_cancelled(&self) -> bool

Source

fn is_for_proxy(&self) -> bool

Source

fn is_ready(&self, msg: &Message) -> bool

Source

fn update(&self, msg: &Message, auth_header: &str) -> bool

Source

fn set_authority(&self, authority: Option<&str>)

Source

fn set_is_for_proxy(&self, is_for_proxy: bool)

Source

fn set_realm(&self, realm: Option<&str>)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

fn connect_scheme_name_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§

Source§

impl<O: IsA<Auth>> AuthExt for O