Crate stellation_bridge
source ·Expand description
Bridge between the frontend and backend.
This module is a RPC implementation that facilitates communications between frontend and backend.
It supports the following routines:
Bridge has 2 connection methods local
and remote
. When a LocalLink
is used, routines will
be connected with the local method and can process requests with resolvers. This can be used for
server-side rendering and processing requests from a bridge connected with the remote method. If
the FetchLink
is used, it will send the request to the bridge endpoint which will
process the routine at the server-side. This is usually used for client-side rendering.
You can check out the example for how to implement resolvers.
Modules
- Hooks used to resolve requests.
- The links used to resolve routines.
- Registries for Routines and their Resolvers.
- Bridge resolvers.
- Bridge Types.
- States used by the frontend and backend.
Structs
- The Bridge.
Enums
- The bridge error type.
Type Aliases
- The bridge result type.