pub struct CookieEvent {
pub seq: u64,
pub ts_ms: u64,
pub action: CookieAction,
pub name: String,
pub domain: String,
pub path: String,
pub flags: Vec<String>,
}Expand description
Cookie store change event captured by Engine::cookie_events.
macOS uses WKHTTPCookieStoreObserver, Linux uses the
WebKitCookieManager::changed signal; both diff snapshots to
produce per-cookie Added/Removed events. Windows currently has no
observer in webview2-com, so the engine reports
inspector_cookie_events = false and the primitive returns
ENGINE_UNSUPPORTED.
Fields§
§seq: u64Per-page monotonic sequence (formatted on the wire as c_<seq>).
ts_ms: u64Milliseconds since Unix epoch when the event was observed.
action: CookieAction§name: String§domain: String§path: String§flags: Vec<String>Same secure/httponly/samesite=/expires= flag vocabulary
as StorageEntry::flags.
Trait Implementations§
Source§impl Clone for CookieEvent
impl Clone for CookieEvent
Auto Trait Implementations§
impl Forget for CookieEvent
impl Freeze for CookieEvent
impl Move for CookieEvent
impl RefUnwindSafe for CookieEvent
impl Send for CookieEvent
impl Sync for CookieEvent
impl Unpin for CookieEvent
impl UnsafeUnpin for CookieEvent
impl UnwindSafe for CookieEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more