Menu

API reference

IPC

Commands, streams and errors between your Rust code and the page.

Structs

IpcError

A structured error with a numeric ErrorCode and human-readable message.

Origin

Security origin of a frame as scheme://host[:port] or opaque.

OriginError

A configured origin that does not parse.

Responder

The answer to one async request.

StreamResponder

Responder for sending data from a browser-side stream handler to the renderer.

Enums

ErrorCode

Classifies an IpcError by the numeric code exposed to the renderer. Runtime errors use the fixed codes 0 through -9; applications may use positive codes through ErrorCode::App.

Traits

StreamHandler

Handles one stream a page opens.

Type aliases

BinaryResponder

Responder of an async binary command, resolved with the reply’s bytes (App::async_binary_command).