Re-exports
pub use async_trait;pub use bytecheck;pub use parking_lot;pub use rkyv;pub use rkyv_derive;pub use tokio;pub use tokio_macros;pub use tokio_tungstenite::tungstenite;pub use tracing;
Structs
- When compressing data, the compression level can be specified by a value in this enum.
- The HardLight server, using tokio & tungstenite.
Enums
- An archived
ClientMessage - An archived
RpcHandlerError - An archived
ServerMessage - The resolver for an archived
ClientMessage - The resolver for an archived
RpcHandlerError - The resolver for an archived
ServerMessage
Constants
Traits
- A ServerHandler will be created for each connection to the server. These are user-defined structs that respond to RPC calls
Type Definitions
- The RpcResponseSender is used to send the response of an RPC call back to the application. When an application sends an RPC call to the server, it will provide a serialized RPC call (method + args) and one of these senders. The application will await the response on the receiver side of the channel.
- A tokio MPSC channel that is used to send state updates to the runtime. The runtime will then send these updates to the client.
Attribute Macros
- Takes any ast as an input and annotates it with useful attributes for data serialization and deserialization. This includes [rkyv]’s
Archive,Serialize,DeserializeandCheckBytestraits, as well asPartialEq,Debug,Clone. - This attribute is used to mark a struct as an RPC handler. Currently, this just adds the
#[async_trait::async_trait]attribute to the struct.