Trait webkit2gtk::CookieManagerExt
source · pub trait CookieManagerExt: IsA<CookieManager> + Sealed + 'static {
Show 15 methods
// Provided methods
fn add_cookie<P: FnOnce(Result<(), Error>) + 'static>(
&self,
cookie: &mut Cookie,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
) { ... }
fn add_cookie_future(
&self,
cookie: &mut Cookie
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
fn delete_all_cookies(&self) { ... }
fn delete_cookie<P: FnOnce(Result<(), Error>) + 'static>(
&self,
cookie: &mut Cookie,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
) { ... }
fn delete_cookie_future(
&self,
cookie: &mut Cookie
) -> Pin<Box_<dyn Future<Output = Result<(), Error>> + 'static>> { ... }
fn delete_cookies_for_domain(&self, domain: &str) { ... }
fn accept_policy<P: FnOnce(Result<CookieAcceptPolicy, Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
) { ... }
fn accept_policy_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<CookieAcceptPolicy, Error>> + 'static>> { ... }
fn cookies<P: FnOnce(Result<Vec<Cookie>, Error>) + 'static>(
&self,
uri: &str,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
) { ... }
fn cookies_future(
&self,
uri: &str
) -> Pin<Box_<dyn Future<Output = Result<Vec<Cookie>, Error>> + 'static>> { ... }
fn domains_with_cookies<P: FnOnce(Result<Vec<GString>, Error>) + 'static>(
&self,
cancellable: Option<&impl IsA<Cancellable>>,
callback: P
) { ... }
fn domains_with_cookies_future(
&self
) -> Pin<Box_<dyn Future<Output = Result<Vec<GString>, Error>> + 'static>> { ... }
fn set_accept_policy(&self, policy: CookieAcceptPolicy) { ... }
fn set_persistent_storage(
&self,
filename: &str,
storage: CookiePersistentStorage
) { ... }
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId { ... }
}
Provided Methods§
Available on crate feature
v2_20
only.Available on crate feature
v2_20
only.👎Deprecated: Since 2.16
Available on crate feature
v2_20
only.Available on crate feature
v2_20
only.👎Deprecated: Since 2.16
fn accept_policy<P: FnOnce(Result<CookieAcceptPolicy, Error>) + 'static>( &self, cancellable: Option<&impl IsA<Cancellable>>, callback: P )
fn accept_policy_future( &self ) -> Pin<Box_<dyn Future<Output = Result<CookieAcceptPolicy, Error>> + 'static>>
Available on crate feature
v2_20
only.Available on crate feature
v2_20
only.👎Deprecated: Since 2.16
👎Deprecated: Since 2.16
fn set_accept_policy(&self, policy: CookieAcceptPolicy)
fn set_persistent_storage( &self, filename: &str, storage: CookiePersistentStorage )
fn connect_changed<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
Object Safety§
This trait is not object safe.