webview2_com::Microsoft::Web::WebView2::Win32

Trait ICoreWebView2CookieManager_Impl

Source
pub trait ICoreWebView2CookieManager_Impl: IUnknownImpl {
    // Required methods
    fn CreateCookie(
        &self,
        name: &PCWSTR,
        value: &PCWSTR,
        domain: &PCWSTR,
        path: &PCWSTR,
    ) -> Result<ICoreWebView2Cookie, Error>;
    fn CopyCookie(
        &self,
        cookieparam: Ref<'_, ICoreWebView2Cookie>,
    ) -> Result<ICoreWebView2Cookie, Error>;
    fn GetCookies(
        &self,
        uri: &PCWSTR,
        handler: Ref<'_, ICoreWebView2GetCookiesCompletedHandler>,
    ) -> Result<(), Error>;
    fn AddOrUpdateCookie(
        &self,
        cookie: Ref<'_, ICoreWebView2Cookie>,
    ) -> Result<(), Error>;
    fn DeleteCookie(
        &self,
        cookie: Ref<'_, ICoreWebView2Cookie>,
    ) -> Result<(), Error>;
    fn DeleteCookies(&self, name: &PCWSTR, uri: &PCWSTR) -> Result<(), Error>;
    fn DeleteCookiesWithDomainAndPath(
        &self,
        name: &PCWSTR,
        domain: &PCWSTR,
        path: &PCWSTR,
    ) -> Result<(), Error>;
    fn DeleteAllCookies(&self) -> Result<(), Error>;
}

Required Methods§

Source

fn CreateCookie( &self, name: &PCWSTR, value: &PCWSTR, domain: &PCWSTR, path: &PCWSTR, ) -> Result<ICoreWebView2Cookie, Error>

Source

fn CopyCookie( &self, cookieparam: Ref<'_, ICoreWebView2Cookie>, ) -> Result<ICoreWebView2Cookie, Error>

Source

fn GetCookies( &self, uri: &PCWSTR, handler: Ref<'_, ICoreWebView2GetCookiesCompletedHandler>, ) -> Result<(), Error>

Source

fn AddOrUpdateCookie( &self, cookie: Ref<'_, ICoreWebView2Cookie>, ) -> Result<(), Error>

Source

fn DeleteCookie( &self, cookie: Ref<'_, ICoreWebView2Cookie>, ) -> Result<(), Error>

Source

fn DeleteCookies(&self, name: &PCWSTR, uri: &PCWSTR) -> Result<(), Error>

Source

fn DeleteCookiesWithDomainAndPath( &self, name: &PCWSTR, domain: &PCWSTR, path: &PCWSTR, ) -> Result<(), Error>

Source

fn DeleteAllCookies(&self) -> Result<(), Error>

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§