Trait soup::prelude::CookieJarExt

source ·
pub trait CookieJarExt: IsA<CookieJar> + Sealed + 'static {
    // Provided methods
    fn all_cookies(&self) -> Vec<Cookie> { ... }
    fn accept_policy(&self) -> CookieJarAcceptPolicy { ... }
    fn cookie_list(&self, uri: &Uri, for_http: bool) -> Vec<Cookie> { ... }
    fn cookie_list_with_same_site_info(
        &self,
        uri: &Uri,
        top_level: Option<&Uri>,
        site_for_cookies: Option<&Uri>,
        for_http: bool,
        is_safe_method: bool,
        is_top_level_navigation: bool,
    ) -> Vec<Cookie> { ... }
    fn cookies(&self, uri: &Uri, for_http: bool) -> Option<GString> { ... }
    fn is_persistent(&self) -> bool { ... }
    fn set_accept_policy(&self, policy: CookieJarAcceptPolicy) { ... }
    fn set_cookie(&self, uri: &Uri, cookie: &str) { ... }
    fn set_cookie_with_first_party(
        &self,
        uri: &Uri,
        first_party: &Uri,
        cookie: &str,
    ) { ... }
    fn is_read_only(&self) -> bool { ... }
    fn connect_changed<F: Fn(&Self, &Cookie, &Cookie) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
    fn connect_accept_policy_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId { ... }
}

Provided Methods§

source

fn all_cookies(&self) -> Vec<Cookie>

source

fn accept_policy(&self) -> CookieJarAcceptPolicy

source

fn cookie_list(&self, uri: &Uri, for_http: bool) -> Vec<Cookie>

source

fn cookie_list_with_same_site_info( &self, uri: &Uri, top_level: Option<&Uri>, site_for_cookies: Option<&Uri>, for_http: bool, is_safe_method: bool, is_top_level_navigation: bool, ) -> Vec<Cookie>

source

fn cookies(&self, uri: &Uri, for_http: bool) -> Option<GString>

source

fn is_persistent(&self) -> bool

source

fn set_accept_policy(&self, policy: CookieJarAcceptPolicy)

source

fn is_read_only(&self) -> bool

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§