Expand description
Platform-independent traits and constants shared between the antenna platform drivers
(antenna-client-web and
antenna-client-native).
Structs§
- IceServer
Config - One STUN or TURN server entry passed to
Peer::with_ice_servers. - Message
Callback - Callback for
UserMessageevents — receives the senderPeerIDand message body. - NoArg
Callback - Callback for events that carry no payload (
Connected,Available, …). - Peer
Callback - Callback for peer-scoped events (
PeerConnected,PeerDisconnected,PeerLost). - RtcCallbacks
- Subscription registry that backs
Peer::subscribe/Peer::unsubscribe.
Enums§
- Client
Msg - WebSocket frame sent from a signaling client to the bundled signaling server.
- Event
- User-facing subscription — pairs an event kind with the callback to run.
- Event
Type - Driver-emitted event — the data side of a notification.
- Server
Msg - WebSocket frame sent from the signaling server to a client.
Constants§
- EXECUTE_
FUEL - fsm-polling method in peer recursion fuel
- STORAGE_
IDENTITY_ KEY - Storage identity key
Traits§
- Identity
Storage - Persistence contract for the local node’s identity. Each platform implements this with
its own backend (web → localStorage, native → JSON file). The contract is the same:
load may return
Noneif no identity has been saved yet (or the persisted blob is malformed); save must overwrite atomically.