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. - Download
- One download the engine holds in memory, on its way to disk.
- Download
Entry - A captured download intent, without its payload. Listed by
Engine::download_listso an agent can see what the page tried to save before committing to reading any of it. - 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. - RecFrame
- One recorded frame streamed from the engine during automation.
- 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. - Cursor
Op - Coordinate-addressed input operations:
vs move-to,vs click-at,vs hover-at,vs drag. Native event dispatch on backends that support it (macOS today; Linux + Windows fall through toENGINE_UNSUPPORTEDuntil M7 wires GDK / CDP input). - Download
Source - What
Engine::downloadshould hand back. - Engine
Error - What can go wrong when driving an engine.
- Input
Mode - Input humanization mode. Wire form:
--mode={human,careful,robotic}. - 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 - WebKitGTK is WebKit, so the Safari family is honest — but the OS
token has to say Linux. Claiming
Macintoshhere contradictednavigator.platform, which reports the real platform: an inconsistency any fingerprinter cross-checks, and one we created.
Traits§
- Engine
- The browser engine, as the daemon sees it.
Type Aliases§
- Engine
Result - Convenience
ResultwithEngineErroras the error type.