# IPC

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

- [`IpcError`](https://kurogane-rs.org/docs/api/ipc/ipcerror.md) (struct): A structured error with a numeric `ErrorCode` and human-readable message.
- [`Origin`](https://kurogane-rs.org/docs/api/ipc/origin.md) (struct): Security origin of a frame as `scheme://host:port` or opaque.
- [`OriginError`](https://kurogane-rs.org/docs/api/ipc/originerror.md) (struct): A configured origin that does not parse.
- [`Responder`](https://kurogane-rs.org/docs/api/ipc/responder.md) (struct): The answer to one async request.
- [`StreamResponder`](https://kurogane-rs.org/docs/api/ipc/streamresponder.md) (struct): Responder for sending data from a browser-side stream handler to the renderer.
- [`ErrorCode`](https://kurogane-rs.org/docs/api/ipc/errorcode.md) (enum): 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`.
- [`StreamHandler`](https://kurogane-rs.org/docs/api/ipc/streamhandler.md) (trait): Handles one stream a page opens.
- [`BinaryResponder`](https://kurogane-rs.org/docs/api/ipc/binaryresponder.md) (type alias): Responder of an async binary command, resolved with the reply's bytes ([`App::async_binary_command`](https://kurogane-rs.org/docs/api/app/app.md#method.async_binary_command)).
