Expand description
The Engine trait — the daemon’s view of “a browser”.
The trait is small, synchronous, and platform-agnostic. The daemon
drives an Engine from a Tokio context but never directly: every
call is dispatched onto the engine’s dedicated thread (see
crate::runtime), where the platform-specific WebKit port runs.
For the live wire types — Tree, [Node], Ref, [Role],
Op — see vs_protocol.
Structs§
- Auth
Blob - Opaque encrypted-by-the-engine auth payload. The daemon hands the
bytes to
vs_storefor at-rest encryption. - Engine
Capabilities - What an engine declares it can and cannot do.
- Layout
Box - Result of
Engine::layout: the computed box for a single ref. - Page
Handle - An opaque engine-side handle to a page. The daemon associates each
PageHandlewith onepagesrow invs-store. - Viewport
- A viewport definition. Sizes are in CSS pixels;
dpris the device-pixel ratio.
Enums§
- ActTarget
- What
Engine::acttargets on a page. - Action
- What
Engine::actdoes at the target. - Capture
Scope - Scope of a
Engine::capturecall. - Engine
Error - What can go wrong when driving an engine.
- Node
Role - The role a node in
Nodewould carry — re-exported for convenience. A11y role code as it appears on the wire. - Wait
Condition - A condition for
Engine::wait.
Constants§
- DEFAULT_
USER_ AGENT - Default
User-Agentthe engine sets on each page. Mirrors a recent shipping Safari on macOS so anti-bot fingerprinters that match on the WKWebView default (which lacks theVersion/X Safari/Xsuffix) don’t flag every request. Backends that support per-webview UA (WKWebView viasetCustomUserAgent, WebKitGTK viawebkit_settings_set_user_agent, WebView2 viaProfile2/coreWebView2.Settings.UserAgent) apply this string at construction.
Traits§
- Engine
- The browser engine, as the daemon sees it.
Type Aliases§
- Engine
Result - Convenience
ResultwithEngineErroras the error type.