Crate taurpc

source ·

Modules

Structs

Traits

  • A data structure that can be deserialized from any data format supported by Serde.
  • A data structure that can be serialized into any data format supported by Serde.
  • A type which can be represented in TypeScript.
    Most of the time, you’d want to derive this trait instead of implementing it manually.
    ts-rs comes with implementations for all primitives, most collections, tuples, arrays and containers.

Functions

  • Creates a handler that allows your IPCs to be called from the frontend with the coresponding types. Accepts a struct in which your taurpc::procedures trait is implemented.

Attribute Macros

  • Add this macro to all structs used inside the procedures arguments or return types. This macro is necessary for serialization and TS type generation.
  • Generates the necessary structs and enums for handling calls and generating TS-types.
  • Transforms all methods to return Pin<Box<Future<Output = …>>>, async traits are not supported.

Derive Macros