Skip to main content

Module widget_ipc

Module widget_ipc 

Source
Expand description

Versioned, permission-checked messages exchanged with isolated widget frames.

Structs§

WidgetRequest
A method call sent by a widget frame.
WidgetResponse
The reply to a widget request. Exactly one of result and error is set.
WidgetSession
One widget frame’s identity, granted permissions, and request rate.
WidgetSessions
Active widget frame sessions, keyed by an opaque session ID.

Constants§

MAX_WIDGET_MESSAGE_BYTES
Largest accepted widget message, in bytes.
WIDGET_PROTOCOL_VERSION
Protocol version every widget message must carry.

Functions§

failure
Builds an error response.
permission_for_method 🔒
Returns the permission a method requires, or None for unknown methods.
success
Builds a successful response.