Skip to main content

Crate antenna_client_shared

Crate antenna_client_shared 

Source
Expand description

Platform-independent traits and constants shared between the antenna platform drivers (antenna-client-web and antenna-client-native).

Structs§

IceServerConfig
One STUN or TURN server entry passed to Peer::with_ice_servers.
MessageCallback
Callback for UserMessage events — receives the sender PeerID and message body.
NoArgCallback
Callback for events that carry no payload (Connected, Available, …).
PeerCallback
Callback for peer-scoped events (PeerConnected, PeerDisconnected, PeerLost).
RtcCallbacks
Subscription registry that backs Peer::subscribe / Peer::unsubscribe.

Enums§

ClientMsg
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.
EventType
Driver-emitted event — the data side of a notification.
ServerMsg
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§

IdentityStorage
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 None if no identity has been saved yet (or the persisted blob is malformed); save must overwrite atomically.