Crate tx5

Source
Expand description
  • :warning: This code is new and should not yet be considered secure for production use!

Project Forum Chat

License: MIT License: Apache-2.0

§Tx5

  • tx5 - crates.io - The main holochain tx5 webrtc networking crate integrating the other code in this monorepo.

§Tx5 Support Crates

§tx5

Tx5 - The main holochain tx5 webrtc networking crate.

§WebRTC Backend Features

Tx5 can be backed currently by 1 of 2 backend webrtc libraries.

The go pion library is currently the default as it is more mature and well tested, but comes with some overhead of calling into a different memory/runtime. When the rust library is stable enough for holochain’s needs, we will switch the default. To switch now, or if you want to make sure the backend doesn’t change out from under you, set no-default-features and explicitly enable the backend of your choice.

Modules§

backend
Backend modules usable by tx5.
stats
Return types for get_stats() call.

Structs§

Config
Tx5 endpoint configuration.
Endpoint
Tx5 endpoint.
EndpointRecv
Receiver for endpoint events.
PeerUrl
A peer connection url.
PubKey
Public key.
SigUrl
A signal server url.
Tx5InitConfig
Initial configuration. If you would like to change this from the default, please call Tx5InitConfig::set_as_global_default before creating any peer connections.

Enums§

EndpointEvent
Endpoint event.

Type Aliases§

BoxFuture
Dynamic future type.
PreflightCheckCb
Callback in charge of validating preflight data if any.
PreflightSendCb
Callback in charge of sending preflight data if any.